3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getValue() { //return new \stdClass(); return true; } if (!($something = getValue())) { echo $something; }

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.0090.00618.23
8.3.50.0140.00716.48
8.3.40.0150.00018.71
8.3.30.0150.00718.69
8.3.20.0080.00019.15
8.3.10.0080.00020.76
8.3.00.0080.00017.78
8.2.180.0070.00718.16
8.2.170.0120.00322.96
8.2.160.0190.00019.08
8.2.150.0040.01224.18
8.2.140.0080.00024.66
8.2.130.0040.00419.77
8.2.120.0110.00726.35
8.2.110.0050.00522.12
8.2.100.0100.00517.78
8.2.90.0000.00817.75
8.2.80.0060.00318.41
8.2.70.0050.00317.91
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0040.00420.91
8.2.30.0030.00319.34
8.2.20.0070.00018.05
8.2.10.0000.00718.04
8.2.00.0030.00521.10
8.1.280.0100.00725.92
8.1.270.0170.00023.79
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0050.00523.77
8.1.230.0090.00322.57
8.1.220.0080.00018.59
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0070.00018.59
8.1.160.0000.00718.86
8.1.150.0080.00018.80
8.1.140.0040.00417.75
8.1.130.0030.00318.92
8.1.120.0030.00617.34
8.1.110.0080.00017.48
8.1.100.0030.00517.49
8.1.90.0040.00417.28
8.1.80.0040.00417.48
8.1.70.0070.00017.34
8.1.60.0040.00417.58
8.1.50.0040.00417.53
8.1.40.0030.00617.40
8.1.30.0040.00417.58
8.1.20.0050.00217.61
8.1.10.0000.00817.32
8.1.00.0060.00317.41
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0060.00018.43
8.0.270.0030.00317.16
8.0.260.0030.00317.16
8.0.250.0030.00316.94
8.0.240.0030.00316.85
8.0.230.0000.00616.85
8.0.220.0030.00316.89
8.0.210.0000.00816.86
8.0.200.0060.00016.95
8.0.190.0030.00516.84
8.0.180.0030.00516.89
8.0.170.0000.00816.92
8.0.160.0000.00716.95
8.0.150.0050.00216.82
8.0.140.0040.00416.84
8.0.130.0000.00513.30
8.0.120.0000.00716.75
8.0.110.0100.00016.88
8.0.100.0040.00416.84
8.0.90.0040.00316.78
8.0.80.0060.01316.82
8.0.70.0080.00016.71
8.0.60.0000.00816.77
8.0.50.0000.00816.83
8.0.30.0100.00917.08
8.0.20.0110.00917.40
8.0.10.0070.00016.89
8.0.00.0140.00916.72
7.4.330.0000.00615.55
7.4.320.0000.00616.51
7.4.300.0060.00016.58
7.4.290.0000.00716.50
7.4.280.0050.00316.61
7.4.270.0040.00416.56
7.4.260.0000.00716.61
7.4.250.0000.00716.46
7.4.240.0030.00316.48
7.4.230.0000.00716.43
7.4.220.0070.00016.56
7.4.210.0110.00616.60
7.4.200.0000.00716.39
7.4.160.0070.00816.36
7.4.140.0080.00917.86
7.4.130.0170.00716.60
7.4.120.0120.00816.53
7.4.110.0100.00716.32
7.4.100.0070.01016.50
7.4.90.0180.00316.44
7.4.80.0070.01019.39
7.4.70.0100.00716.32
7.4.60.0130.00716.54
7.4.50.0030.01316.54
7.4.40.0100.01016.40
7.4.00.0070.01014.92
7.3.330.0030.00513.25
7.3.320.0030.00313.25
7.3.310.0030.00316.27
7.3.300.0000.00716.11
7.3.290.0030.00316.10
7.3.280.0080.00716.23
7.3.260.0100.01016.37
7.3.240.0100.00816.39
7.3.230.0100.00616.45
7.3.210.0090.00916.46
7.3.200.0130.00316.23
7.3.190.0090.00616.44
7.3.180.0130.00316.49
7.3.170.0060.01316.24
7.3.160.0090.00616.29
7.3.120.0090.00914.62
7.3.110.0140.00314.57
7.3.100.0060.00914.73
7.3.90.0080.00414.78
7.3.80.0070.00414.74
7.3.70.0040.01114.86
7.3.60.0080.00814.70
7.3.50.0030.01014.54
7.3.40.0000.01614.80
7.3.30.0000.01314.74
7.3.20.0070.00716.65
7.3.10.0030.01316.45
7.3.00.0060.00816.79
7.2.330.0130.01016.40
7.2.320.0110.00716.52
7.2.310.0140.00316.39
7.2.300.0100.01016.55
7.2.290.0070.01016.30
7.2.250.0000.01814.84
7.2.240.0100.01014.80
7.2.230.0070.01014.91
7.2.220.0070.00714.88
7.2.210.0060.00914.98
7.2.200.0040.01414.91
7.2.190.0090.00014.96
7.2.180.0140.00015.04
7.2.170.0090.00615.05
7.2.60.1850.00914.64
7.2.50.2410.01014.80
7.2.40.2540.01215.47
7.2.30.2590.00915.54
7.2.20.2220.01115.42
7.2.10.2330.01115.21
7.2.00.1520.00715.50
7.1.330.0030.00915.72
7.1.320.0070.00715.82
7.1.310.0070.00715.76
7.1.300.0040.00815.64
7.1.290.0070.01015.67
7.1.280.0080.00515.66
7.1.270.0100.00615.45
7.1.260.0100.00315.74
7.1.200.0200.00415.06
7.1.170.2560.01113.88
7.1.160.2190.01116.81
7.1.150.2060.01016.86
7.1.140.2340.01116.88
7.1.130.2710.00816.48
7.1.120.1570.01116.76
7.1.110.2120.01016.30
7.1.100.2630.00616.04
7.1.90.1980.01216.15
7.1.80.2460.01216.02
7.1.70.2260.01015.30
7.1.60.2330.01533.23
7.1.50.2660.01232.80
7.1.40.2900.01432.52
7.1.30.2600.01332.68
7.1.20.2620.01732.78
7.1.10.1890.01214.36
7.1.00.2240.01214.58

preferences:
66.02 ms | 401 KiB | 5 Q