3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 10; echo "$a < ++$a vv"; $b = 11; if (10 < 11 || 11 < 12) print "hello"; else print "hi"; $a = 10; $b = 11; if ($a == ++$a && $b == ++$b) print "hello$a and $b"; else print "hi"; if ((print "hi")- 1) print "hello";

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.40.0130.00318.67
8.3.30.0030.01218.54
8.3.20.0060.01320.07
8.3.10.0030.00623.48
8.3.00.0030.00619.66
8.2.170.0230.01022.96
8.2.160.0070.00719.15
8.2.150.0090.00024.18
8.2.140.0120.00624.66
8.2.130.0040.00419.21
8.2.120.0080.00026.35
8.2.110.0070.00322.30
8.2.100.0080.00417.97
8.2.90.0140.00018.89
8.2.80.0000.00818.05
8.2.70.0050.00317.63
8.2.60.0080.00017.80
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0030.00819.23
8.2.20.0000.00717.91
8.2.10.0080.00018.03
8.2.00.0040.00418.10
8.1.270.0100.01022.18
8.1.260.0160.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00323.97
8.1.230.0110.00022.11
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0040.00418.99
8.1.150.0080.00020.59
8.1.140.0000.00819.61
8.1.130.0060.00318.80
8.1.120.0070.00017.35
8.1.110.0040.00417.45
8.1.100.0000.00817.45
8.1.90.0000.00717.40
8.1.80.0000.00817.48
8.1.70.0040.00417.48
8.1.60.0000.00817.50
8.1.50.0000.00817.39
8.1.40.0060.00317.53
8.1.30.0000.00817.65
8.1.20.0000.00817.59
8.1.10.0000.00817.45
8.1.00.0000.00817.49
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0040.00418.38
8.0.270.0070.00017.19
8.0.260.0040.00218.32
8.0.250.0000.00716.89
8.0.240.0000.00717.04
8.0.230.0030.00317.01
8.0.220.0020.00516.95
8.0.210.0040.00416.82
8.0.200.0040.00416.88
8.0.190.0030.00516.96
8.0.180.0000.00716.96
8.0.170.0040.00416.96
8.0.160.0040.00416.96
8.0.150.0000.00816.86
8.0.140.0080.00016.88
8.0.130.0000.00513.45
8.0.120.0060.00316.79
8.0.110.0040.00417.00
8.0.100.0000.00716.90
8.0.90.0000.00816.93
8.0.80.0150.00816.98
8.0.70.0050.00216.99
8.0.60.0080.00016.91
8.0.50.0080.00016.91
8.0.30.0150.00417.12
8.0.20.0120.00617.40
8.0.10.0040.00417.00
8.0.00.0130.00616.85
7.4.330.0050.00015.55
7.4.320.0070.00016.59
7.4.300.0040.00416.49
7.4.290.0000.00716.55
7.4.280.0040.00416.58
7.4.270.0030.00316.65
7.4.260.0060.00316.58
7.4.250.0050.00316.52
7.4.240.0030.00316.51
7.4.230.0000.00716.57
7.4.220.0070.01816.60
7.4.210.0060.01016.61
7.4.200.0000.00716.48
7.4.160.0080.00716.38
7.4.150.0060.01417.40
7.4.140.0130.00417.86
7.4.130.0150.00416.42
7.4.120.0110.01216.50
7.4.110.0030.01716.55
7.4.100.0100.00716.41
7.4.90.0130.00316.43
7.4.80.0040.01219.39
7.4.70.0040.01216.61
7.4.60.0120.00316.29
7.4.50.0090.00616.41
7.4.40.0030.01316.65
7.4.30.0100.01016.32
7.4.00.0130.00315.11
7.3.330.0030.00313.21
7.3.320.0060.00013.27
7.3.310.0030.00316.42
7.3.300.0000.00716.27
7.3.290.0040.00416.29
7.3.280.0090.00716.38
7.3.270.0060.01217.40
7.3.260.0120.00516.54
7.3.250.0100.00916.38
7.3.240.0110.00816.41
7.3.230.0150.00316.32
7.3.210.0040.01216.43
7.3.200.0000.01916.57
7.3.190.0170.00016.27
7.3.180.0050.01016.34
7.3.170.0110.00716.29
7.3.160.0090.00616.39
7.2.330.0090.01416.57
7.2.320.0060.01116.72
7.2.310.0120.00416.61
7.2.300.0080.00916.40
7.2.290.0080.00816.48
7.2.60.1100.00815.17
7.2.00.0040.00819.53
7.1.200.0070.00715.65
7.1.100.0040.00817.84
7.1.70.0170.01715.39
7.1.60.0300.02033.38
7.1.50.0380.01933.03
7.1.40.0320.01032.39
7.1.30.0420.01632.71
7.1.20.0410.01632.57
7.1.10.0260.01014.61
7.1.00.0210.01114.73
7.0.200.0150.01715.13
7.0.190.0190.00815.00
7.0.180.0180.01014.43
7.0.170.0260.00714.46
7.0.160.0130.01514.34
7.0.150.0210.01214.44
7.0.140.0450.01614.46
7.0.130.0270.00914.54
7.0.120.0190.01014.59
7.0.110.0260.01214.42
7.0.100.0120.01614.34
7.0.90.0320.00914.54
7.0.80.0180.01414.56
7.0.70.0280.00614.59
7.0.60.0280.02014.21
7.0.50.0360.01014.40
7.0.40.0200.01614.41
7.0.30.0160.01314.79
7.0.20.0190.01114.64
7.0.10.0220.00614.63
7.0.00.0170.01314.66

preferences:
47.96 ms | 400 KiB | 5 Q