3v4l.org

run code in 300+ PHP versions simultaneously
<?php function whatever(string $string){ echo $string;} $y = true; $x = $y ? 'oops my bad i broke it' : null; is_null($x) ? null : whatever($x);

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.60.0070.00716.63
8.3.50.0100.00715.99
8.3.40.0090.00618.63
8.3.30.0070.00718.48
8.3.20.0000.00820.05
8.3.10.0060.01221.84
8.3.00.0080.00023.61
8.2.180.0170.00016.63
8.2.170.0060.01322.96
8.2.160.0110.00720.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00020.47
8.2.120.0080.00026.35
8.2.110.0030.00622.29
8.2.100.0080.00317.91
8.2.90.0000.00819.07
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00819.66
8.2.50.0040.00418.10
8.2.40.0030.00620.63
8.2.30.0040.00419.11
8.2.20.0060.00317.91
8.2.10.0040.00418.05
8.2.00.0080.00018.05
8.1.280.0070.01125.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00620.84
8.1.230.0090.00317.82
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.00917.23
8.1.190.0040.00717.23
8.1.180.0070.00018.10
8.1.170.0000.00818.29
8.1.160.0040.00418.73
8.1.150.0000.00720.13
8.1.140.0000.00817.37
8.1.130.0030.00319.97
8.1.120.0000.00717.32
8.1.110.0040.00417.38
8.1.100.0040.00417.27
8.1.90.0070.00017.36
8.1.80.0020.00517.37
8.1.70.0090.00017.43
8.1.60.0000.00817.56
8.1.50.0040.00417.51
8.1.40.0000.00817.54
8.1.30.0000.00817.51
8.1.20.0000.00817.61
8.1.10.0060.00317.46
8.1.00.0000.00817.41
8.0.300.0000.00918.77
8.0.290.0040.00416.63
8.0.280.0070.00018.52
8.0.270.0030.00317.18
8.0.260.0000.00720.25
8.0.250.0030.00316.92
8.0.240.0000.00816.82
8.0.230.0030.00616.86
8.0.220.0040.00416.82
8.0.210.0000.00716.71
8.0.200.0100.00016.74
8.0.190.0030.00616.90
8.0.180.0040.00416.73
8.0.170.0050.00316.86
8.0.160.0000.00816.81
8.0.150.0040.00416.71
8.0.140.0000.00716.79
8.0.130.0050.00013.26
8.0.120.0030.00516.75
8.0.110.0040.00416.76
8.0.100.0080.00016.80
8.0.90.0050.00316.88
8.0.80.0120.00316.85
8.0.70.0000.00716.79
8.0.60.0000.00816.86
8.0.50.0070.00016.86
8.0.30.0100.00816.95
8.0.20.0090.01017.40
8.0.10.0040.00416.75
8.0.00.0100.00717.01
7.4.330.0050.00015.55
7.4.320.0030.00316.54
7.4.300.0030.00316.48
7.4.290.0030.00316.62
7.4.280.0000.00716.57
7.4.270.0000.00716.52
7.4.260.0070.00016.54
7.4.250.0000.00716.57
7.4.240.0020.00516.39
7.4.230.0050.00216.23
7.4.220.0070.01316.59
7.4.210.0150.00616.63
7.4.200.0000.00716.67
7.4.160.0070.00916.51
7.4.150.0070.01117.40
7.4.140.0080.00917.86
7.4.130.0110.00716.37
7.4.120.0100.01116.51
7.4.110.0060.01016.40
7.4.100.0180.00016.50
7.4.90.0070.01416.51
7.4.80.0100.01319.39
7.4.70.0060.01116.48
7.4.60.0100.00716.53
7.4.50.0100.00716.38
7.4.40.0090.00916.46
7.4.30.0070.01016.18
7.4.10.0110.00714.89
7.4.00.0070.00914.81
7.3.330.0030.00313.25
7.3.320.0030.00313.10
7.3.310.0030.00316.19
7.3.300.0060.00016.17
7.3.290.0090.00816.29
7.3.280.0090.00916.27
7.3.270.0100.00717.40
7.3.260.0110.00816.46
7.3.250.0110.01016.53
7.3.240.0130.00516.38
7.3.230.0130.00316.22
7.3.210.0110.01116.49
7.3.200.0100.01016.75
7.3.190.0000.01516.39
7.3.180.0100.00716.59
7.3.170.0100.00616.27
7.3.160.0090.00616.55
7.3.130.0070.01014.67
7.3.120.0030.01614.63
7.3.110.0100.00714.36
7.3.100.0000.01214.87
7.3.90.0030.01014.59
7.3.80.0080.00614.89
7.3.70.0040.01114.72
7.3.60.0100.00614.85
7.3.50.0060.00814.45
7.3.40.0000.00914.88
7.3.30.0080.00414.92
7.3.20.0060.00916.77
7.3.10.0000.01816.59
7.3.00.0000.01016.60
7.2.330.0060.01116.45
7.2.320.0090.01516.68
7.2.310.0070.01016.32
7.2.300.0100.00716.65
7.2.290.0100.01016.51
7.2.260.0070.01114.53
7.2.250.0140.00314.93
7.2.240.0000.01314.78
7.2.230.0100.00314.82
7.2.220.0090.00314.72
7.2.210.0040.01414.92
7.2.200.0060.00614.96
7.2.190.0120.00615.04
7.2.180.0040.01214.92
7.2.170.0110.00314.83
7.2.160.0060.01014.89
7.2.150.0070.01116.90
7.2.140.0040.01516.79
7.2.130.0080.00416.75
7.2.120.0090.00916.90
7.2.110.0030.00617.05
7.2.100.0050.00516.87
7.2.90.0110.00016.98
7.2.80.0080.00516.74
7.2.70.0030.01316.72
7.2.60.0060.00716.54
7.2.50.0060.00616.95
7.2.40.0000.01416.86
7.2.30.0100.00616.67
7.2.20.0090.00616.91
7.2.10.0070.00716.81
7.2.00.0050.00516.95
7.1.330.0000.01215.71
7.1.320.0060.01215.55
7.1.310.0000.01115.80
7.1.300.0030.01015.78
7.1.290.0060.00615.71
7.1.280.0050.00815.80
7.1.270.0060.01215.54
7.1.260.0070.01015.52
7.1.250.0030.01215.61
7.1.240.0030.01415.81
7.1.230.0000.01715.96
7.1.220.0000.01415.80
7.1.210.0040.01115.80
7.1.200.0070.00615.87
7.1.190.0030.01315.77
7.1.180.0000.01315.88
7.1.170.0110.00315.81
7.1.160.0080.00415.68
7.1.150.0040.00415.73
7.1.140.0040.00815.77
7.1.130.0040.00715.91
7.1.120.0070.00715.70
7.1.110.0070.01115.63
7.1.100.1170.01015.90
7.1.90.1270.00715.93
7.1.80.1280.01116.08
7.1.70.1310.00915.41
7.1.60.1360.00824.39
7.1.50.1490.00724.37
7.1.40.1660.01524.18
7.1.30.1460.00824.13
7.1.20.1970.01024.30
7.1.10.1570.01315.41
7.1.00.2430.01015.27
7.0.330.0090.00315.23
7.0.320.0030.01015.18
7.0.310.0080.00415.38
7.0.300.0000.00815.29
7.0.290.0100.00315.02
7.0.280.0000.01215.38
7.0.270.0000.00915.16
7.0.260.0030.01315.35
7.0.250.0100.00715.49
7.0.240.1360.00715.69
7.0.230.1260.00815.64
7.0.220.1410.00615.48
7.0.210.1100.00615.02
7.0.200.1590.00315.20
7.0.190.1100.00915.18
7.0.180.1350.00814.89
7.0.170.1390.00814.92
7.0.160.1900.01015.03
7.0.150.1600.00814.78
7.0.140.2000.00715.04
7.0.130.2280.00715.10
7.0.120.1970.00714.95
7.0.110.2690.01014.98
7.0.100.2610.00715.01
7.0.90.1790.00715.03
7.0.80.2570.00714.93
7.0.70.2370.01614.93
7.0.60.1710.00714.89
7.0.50.2270.00714.96
7.0.40.1470.00814.01
7.0.30.1900.00813.89
7.0.20.1680.00514.04
7.0.10.2290.00314.14
7.0.00.1550.00714.01
5.6.400.0030.01014.32
5.6.390.0060.00913.69
5.6.380.0070.00714.42
5.6.370.0100.00314.21
5.6.360.0040.00814.01
5.6.350.0000.00914.05
5.6.340.0040.00714.12
5.6.330.0060.00314.12
5.6.320.0100.01014.45
5.6.310.0100.00314.18
5.6.300.0090.00613.89
5.6.290.0110.00314.20
5.6.280.0080.00314.28
5.6.270.0090.00614.19
5.6.260.0040.01114.20
5.6.250.0060.00314.04
5.6.240.0070.00713.99
5.6.230.0040.00814.07
5.6.220.0040.01214.18
5.6.210.0030.00714.21
5.6.200.0050.00314.22
5.6.190.0030.00914.41
5.6.180.0030.00614.21
5.6.170.0030.00614.24
5.6.160.0100.00013.99
5.6.150.0060.00914.21
5.6.140.0040.00714.11
5.6.130.0060.01014.50
5.6.120.0100.00714.37
5.6.110.0030.01014.08
5.6.100.0100.00014.42
5.6.90.0090.00314.18
5.6.80.0030.00614.02
5.6.70.0100.00014.09
5.6.60.0060.00614.13
5.6.50.0030.00614.08
5.6.40.0000.01314.22
5.6.30.0030.00613.93
5.6.20.0070.00714.08
5.6.10.0080.00814.16
5.6.00.0030.01214.17

preferences:
76.4 ms | 400 KiB | 5 Q