3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function get() {} function set($bar) {} } class Qux extends Foo { function get(): Baz {} function set(Baz $bar) {} }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0060.01318.43
8.3.60.0110.00718.56
8.3.50.0100.00816.42
8.3.40.0150.00018.53
8.3.30.0150.00018.50
8.3.20.0070.00020.22
8.3.10.0050.00221.91
8.3.00.0040.00420.89
8.2.180.0070.00718.29
8.2.170.0070.00722.96
8.2.160.0040.01122.21
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00022.25
8.2.120.0060.00326.35
8.2.110.0000.00920.38
8.2.100.0090.00317.78
8.2.90.0050.00319.16
8.2.80.0040.00417.97
8.2.70.0050.00317.13
8.2.60.0050.00317.89
8.2.50.0030.00518.10
8.2.40.0040.00422.20
8.2.30.0000.00719.08
8.2.20.0000.00717.80
8.2.10.0030.00617.98
8.2.00.0040.00418.00
8.1.280.0110.00425.92
8.1.270.0070.00023.96
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.56
8.1.230.0070.00419.15
8.1.220.0030.00717.74
8.1.210.0060.00318.77
8.1.200.0040.00417.22
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0050.00318.57
8.1.160.0050.00219.04
8.1.150.0000.00718.76
8.1.140.0070.00019.50
8.1.130.0000.00718.80
8.1.120.0030.00317.29
8.1.110.0050.00317.15
8.1.100.0040.00417.29
8.1.90.0000.00717.37
8.1.80.0000.00717.36
8.1.70.0000.00717.37
8.1.60.0050.00217.43
8.1.50.0000.00717.39
8.1.40.0080.00017.32
8.1.30.0060.00317.45
8.1.20.0040.00417.43
8.1.10.0060.00317.38
8.1.00.0000.00717.15
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.31
8.0.270.0040.00417.00
8.0.260.0000.00616.63
8.0.250.0080.00016.84
8.0.240.0060.00316.76
8.0.230.0000.00716.79
8.0.220.0040.00416.78
8.0.210.0000.00816.86
8.0.200.0000.00816.76
8.0.190.0000.00816.84
8.0.180.0000.00816.89
8.0.170.0030.00516.85
8.0.160.0040.00416.71
8.0.150.0000.00716.75
8.0.140.0050.00216.79
8.0.130.0040.00413.23
8.0.120.0040.00416.68
8.0.110.0050.00216.86
8.0.100.0040.00416.67
8.0.90.0040.00416.80
8.0.80.0000.01616.70
8.0.70.0040.00416.67
8.0.60.0040.00416.82
8.0.50.0000.00716.73
8.0.30.0070.01216.87
8.0.20.0120.00817.40
8.0.10.0050.00216.98
8.0.00.0070.01116.70
7.4.330.0000.00515.55
7.4.320.0030.00316.45
7.4.300.0030.00316.31
7.4.290.0000.00716.46
7.4.280.0070.00016.36
7.4.270.0000.00716.38
7.4.260.0070.00016.34
7.4.250.0000.00716.43
7.4.240.0070.00016.47
7.4.230.0030.00316.36
7.4.220.0100.01016.46
7.4.210.0090.00516.40
7.4.200.0030.00316.50
7.4.160.0060.00916.26
7.4.150.0070.01117.40
7.4.140.0150.00817.86
7.4.130.0070.01416.49
7.4.120.0080.01116.27
7.4.110.0060.01116.41
7.4.100.0070.01416.38
7.4.90.0100.00616.48
7.4.80.0080.00819.39
7.4.70.0040.01316.15
7.4.60.0100.00716.47
7.4.50.0100.00516.25
7.4.40.0100.01316.35
7.4.30.0160.00716.43
7.4.00.0060.00914.82
7.3.330.0040.00413.07
7.3.320.0050.00013.10
7.3.310.0030.00516.26
7.3.300.0000.00616.09
7.3.290.0000.00716.11
7.3.280.0070.00916.21
7.3.270.0100.00717.40
7.3.260.0100.00916.24
7.3.250.0130.00716.23
7.3.240.0120.01116.19
7.3.230.0060.00916.31
7.3.210.0090.01316.38
7.3.200.0120.00416.33
7.3.190.0090.00616.28
7.3.180.0060.01116.40
7.3.170.0110.00516.29
7.3.160.0090.00816.14
7.3.10.0070.00716.64
7.3.00.0040.01116.55
7.2.330.0030.01416.53
7.2.320.0060.01316.28
7.2.310.0100.00716.19
7.2.300.0140.00416.30
7.2.290.0100.01016.52
7.2.130.0100.00716.61
7.2.120.0000.01016.32
7.2.110.0000.00916.77
7.2.100.0060.00916.85
7.2.90.0100.00815.62
7.2.80.1130.00615.82
7.2.70.0090.00715.54
7.2.60.1260.00615.71
7.2.50.1390.00615.57
7.2.40.0890.00515.69
7.2.30.0470.00715.69
7.2.20.0460.00615.67
7.2.10.0520.00815.57
7.2.00.0140.00515.66
7.1.250.0040.01115.20
7.1.210.0130.00613.72
7.1.200.0070.01113.47
7.1.190.0150.00413.57
7.1.180.2790.00713.64
7.1.170.2840.00613.75
7.1.160.2030.00313.45
7.1.150.2140.00713.73
7.1.140.0910.01313.61
7.1.130.2100.00713.87
7.1.120.1300.00913.88
7.1.110.0300.01313.50
7.1.100.0070.01513.62
7.1.90.0190.00913.79
7.1.80.0710.00613.77
7.1.70.1180.00913.56
7.1.60.0360.01031.73
7.1.50.0330.00731.39
7.1.40.0940.01331.60
7.1.30.0260.01131.67
7.1.20.1650.01431.63
7.1.10.0090.00913.47
7.1.00.1690.00713.57
7.0.310.2020.00613.31
7.0.300.1980.00313.26
7.0.290.1640.01012.82
7.0.280.0710.00713.03
7.0.270.2190.01313.17
7.0.260.1590.00313.25
7.0.250.0110.00813.20
7.0.240.0320.01313.14
7.0.230.0130.00713.58
7.0.220.0150.00913.44
7.0.210.0180.00613.56
7.0.200.0100.00613.23
7.0.190.1110.00912.97
7.0.180.1430.01013.27
7.0.170.0180.00712.90
7.0.160.0910.00613.28
7.0.150.0120.00613.26
7.0.140.0110.00713.41
7.0.130.0140.01013.29
7.0.120.3420.00613.22
7.0.110.2030.00313.40
7.0.100.2190.01013.41
7.0.90.0710.01013.35
7.0.80.0380.00613.34
7.0.70.0580.01013.34
7.0.60.0110.00913.55
7.0.50.0070.01013.47
7.0.40.0050.01113.14
7.0.30.0440.01213.18
7.0.20.2360.00613.19
7.0.10.0210.01113.50
7.0.00.0070.00713.35

preferences:
38.32 ms | 401 KiB | 5 Q