3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; // can be -1, 0, or 1 if ($x == -1) { // do stuff } if ($x == 1) { // do NOTHING } else { // do stuff } // Please refactor anb paste so I can show my colleague

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.0120.00618.05
8.3.50.0110.00716.44
8.3.40.0100.00718.58
8.3.30.0120.00318.55
8.3.20.0040.00420.70
8.3.10.0080.00020.21
8.3.00.0040.00423.65
8.2.180.0130.00725.92
8.2.170.0070.00722.96
8.2.160.0100.00322.05
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00619.17
8.2.100.0110.00017.78
8.2.90.0040.00417.84
8.2.80.0040.00717.97
8.2.70.0090.00017.90
8.2.60.0060.00318.09
8.2.50.0080.00018.10
8.2.40.0000.00719.15
8.2.30.0040.00419.24
8.2.20.0040.00418.08
8.2.10.0000.00818.84
8.2.00.0070.00019.42
8.1.280.0100.00725.92
8.1.270.0040.00422.52
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0030.00622.41
8.1.230.0060.00620.99
8.1.220.0000.00817.74
8.1.210.0030.00618.84
8.1.200.0080.00017.11
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0030.00518.52
8.1.160.0000.00718.88
8.1.150.0070.00018.92
8.1.140.0050.00318.79
8.1.130.0070.00020.03
8.1.120.0000.00717.45
8.1.110.0040.00417.48
8.1.100.0000.00817.50
8.1.90.0050.00317.33
8.1.80.0000.00717.46
8.1.70.0070.00017.47
8.1.60.0040.00417.57
8.1.50.0000.00717.52
8.1.40.0080.00017.47
8.1.30.0030.00517.55
8.1.20.0090.00017.63
8.1.10.0000.00717.33
8.1.00.0000.00717.35
8.0.300.0050.00219.89
8.0.290.0020.00516.63
8.0.280.0000.00718.36
8.0.270.0070.00017.09
8.0.260.0060.00018.43
8.0.250.0030.00316.90
8.0.240.0000.00616.89
8.0.230.0040.00416.78
8.0.220.0070.00016.80
8.0.210.0030.00316.85
8.0.200.0030.00316.77
8.0.190.0030.00516.71
8.0.180.0050.00216.82
8.0.170.0040.00416.84
8.0.160.0060.00316.82
8.0.150.0000.00716.70
8.0.140.0070.00016.74
8.0.130.0070.00013.30
8.0.120.0040.00416.81
8.0.110.0000.00716.93
8.0.100.0030.00316.69
8.0.90.0030.00316.64
8.0.80.0100.00616.77
8.0.70.0050.00216.64
8.0.60.0040.00417.00
8.0.50.0000.00716.93
8.0.30.0070.00717.11
8.0.20.0100.01417.06
8.0.10.0040.00416.87
8.0.00.0080.01216.67
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0030.00616.44
7.4.290.0040.00416.44
7.4.280.0040.00416.57
7.4.270.0070.00016.59
7.4.260.0030.00316.56
7.4.250.0070.00016.53
7.4.240.0020.00516.44
7.4.230.0060.00016.67
7.4.220.0090.00016.59
7.4.210.0100.01016.60
7.4.200.0030.00316.66
7.4.160.0090.01216.35
7.4.140.0140.00417.86
7.4.130.0100.00716.43
7.4.120.0110.00816.46
7.4.110.0000.01716.41
7.4.100.0150.00716.62
7.4.90.0100.01316.50
7.4.80.0190.01019.39
7.4.70.0110.00516.41
7.4.60.0090.00916.47
7.4.50.0030.01316.44
7.4.40.0100.00716.45
7.4.00.0030.01014.81
7.3.330.0030.00313.10
7.3.320.0050.00013.10
7.3.310.0000.00916.16
7.3.300.0000.00616.22
7.3.290.0030.00315.98
7.3.280.0030.01316.24
7.3.260.0110.00916.38
7.3.240.0100.00716.33
7.3.230.0090.00916.48
7.3.210.0030.01716.15
7.3.200.0120.00616.24
7.3.190.0100.00616.13
7.3.180.0100.01016.10
7.3.170.0090.00616.13
7.3.160.0080.00816.53
7.3.50.0060.01014.59
7.3.40.0120.00914.56
7.3.30.0140.00714.39
7.3.20.0100.01016.36
7.3.10.0120.00916.16
7.3.00.0030.00916.53
7.2.330.0090.00916.38
7.2.320.0140.00416.45
7.2.310.0100.00716.21
7.2.300.0060.01116.42
7.2.290.0080.01516.55
7.2.180.0040.01214.63
7.2.170.0080.00414.71
7.2.160.0090.00414.64
7.2.150.0090.00316.79
7.2.140.0120.00916.64
7.2.130.0160.00716.83
7.2.120.0030.00916.70
7.2.110.0130.00616.88
7.2.100.0060.01816.62
7.2.90.0090.01416.68
7.2.80.0000.01316.55
7.2.70.0090.00316.50
7.2.60.0070.01516.80
7.2.50.0000.02216.48
7.2.40.0100.01316.86
7.2.30.0110.01116.78
7.2.20.0080.00816.73
7.2.10.0110.01216.53
7.2.00.0160.00616.69
7.1.280.0080.00315.53
7.1.270.0080.01115.79
7.1.260.0140.00615.53
7.1.250.0090.00615.50

preferences:
64.69 ms | 401 KiB | 5 Q