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.70.0070.01416.63
8.3.60.0060.01018.55
8.3.50.0030.01017.05
8.3.40.0110.00418.69
8.3.30.0110.01118.72
8.3.20.0000.00819.03
8.3.10.0000.00820.70
8.3.00.0000.00817.89
8.2.190.0090.00616.63
8.2.180.0040.01118.00
8.2.170.0110.01122.96
8.2.160.0170.00018.97
8.2.150.0140.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0060.00320.22
8.2.100.0000.01217.84
8.2.90.0050.00317.59
8.2.80.0100.00018.61
8.2.70.0030.00517.80
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.87
8.2.30.0040.00419.43
8.2.20.0040.00417.93
8.2.10.0070.00018.03
8.2.00.0000.00719.30
8.1.280.0100.00725.92
8.1.270.0000.00823.75
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0120.00022.07
8.1.230.0080.00420.89
8.1.220.0040.00418.57
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0030.00517.11
8.1.180.0000.00818.10
8.1.170.0000.00818.60
8.1.160.0070.00018.92
8.1.150.0000.00718.75
8.1.140.0030.00317.69
8.1.130.0030.00319.00
8.1.120.0000.00817.50
8.1.110.0040.00417.43
8.1.100.0040.00417.38
8.1.90.0000.00817.41
8.1.80.0070.00017.48
8.1.70.0040.00417.48
8.1.60.0050.00317.45
8.1.50.0040.00417.43
8.1.40.0070.00317.34
8.1.30.0070.00017.71
8.1.20.0040.00417.70
8.1.10.0030.00617.38
8.1.00.0040.00417.30
8.0.300.0040.01018.77
8.0.290.0030.00716.63
8.0.280.0070.00018.48
8.0.270.0040.00417.23
8.0.260.0000.00617.21
8.0.250.0050.00316.81
8.0.240.0000.00716.88
8.0.230.0030.00316.93
8.0.220.0040.00416.86
8.0.210.0030.00316.88
8.0.200.0060.00016.96
8.0.190.0040.00416.78
8.0.180.0000.00816.80
8.0.170.0030.00516.88
8.0.160.0070.00016.98
8.0.150.0000.00716.89
8.0.140.0080.00016.80
8.0.130.0000.00513.26
8.0.120.0000.00716.88
8.0.110.0030.00616.88
8.0.100.0000.00716.82
8.0.90.0050.00216.84
8.0.80.0080.01016.89
8.0.70.0070.00016.82
8.0.60.0000.00717.00
8.0.50.0040.00416.83
8.0.30.0110.00817.13
8.0.20.0120.01117.40
8.0.10.0040.00416.89
8.0.00.0190.01216.69
7.4.330.0030.00315.55
7.4.320.0060.00016.52
7.4.300.0030.00316.60
7.4.290.0020.00516.54
7.4.280.0030.00316.47
7.4.270.0030.00316.50
7.4.260.0020.00516.39
7.4.250.0000.00716.48
7.4.240.0070.00016.59
7.4.230.0000.00716.66
7.4.220.0050.00216.49
7.4.210.0110.00716.61
7.4.200.0040.00416.66
7.4.160.0110.00516.45
7.4.140.0100.00717.86
7.4.130.0200.00316.55
7.4.120.0090.00916.44
7.4.110.0120.00616.61
7.4.100.0070.01016.32
7.4.90.0130.00716.34
7.4.80.0090.01219.39
7.4.70.0090.01216.46
7.4.60.0070.01016.34
7.4.50.0070.01016.61
7.4.40.0060.01616.56
7.4.00.0090.00614.86
7.3.330.0040.00413.18
7.3.320.0020.00313.21
7.3.310.0000.00716.27
7.3.300.0040.00416.12
7.3.290.0000.00716.25
7.3.280.0140.00416.26
7.3.260.0080.00916.32
7.3.240.0090.00816.25
7.3.230.0140.00316.59
7.3.210.0030.01716.06
7.3.200.0060.00916.57
7.3.190.0030.01316.31
7.3.180.0160.00316.28
7.3.170.0040.01216.36
7.3.160.0120.00416.28
7.2.330.0040.01316.73
7.2.320.0080.00816.40
7.2.310.0090.00916.27
7.2.300.0140.00316.25
7.2.290.0070.01116.51
7.2.60.0180.00614.87
7.2.50.1980.00914.83
7.2.40.1770.00615.23
7.2.30.2100.00815.28
7.2.20.2270.00915.41
7.2.10.2330.01215.42
7.2.00.2300.01215.36
7.1.200.0040.00715.73
7.1.170.0960.01213.63
7.1.160.1800.01016.70
7.1.150.1830.01416.77
7.1.140.2240.01016.54
7.1.130.2580.01316.93
7.1.120.2260.01416.58
7.1.110.2210.00916.34
7.1.100.1730.01115.85
7.1.90.2510.00616.21
7.1.80.2110.00916.13
7.1.70.3100.01715.30
7.1.60.3120.01132.98
7.1.50.3340.01732.90
7.1.40.5350.01532.38
7.1.30.3910.01832.40
7.1.20.3280.01432.69
7.1.10.3440.01414.48
7.1.00.2500.01514.59

preferences:
40.11 ms | 401 KiB | 5 Q