3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 4; // this line might result in unexpected output: echo "x minus one equals " . $x-1 . ", or so I hope\n"; // because it is evaluated like this line: echo (("x minus one equals " . $x) - 1) . ", or so I hope\n"; // the desired precendence can be enforced by using parentheses: echo "x minus one equals " . ($x-1) . ", or so I hope\n";

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.0090.01216.88
8.3.60.0120.00618.55
8.3.50.0080.00916.57
8.3.40.0110.00418.79
8.3.30.0110.00418.83
8.3.20.0040.00420.22
8.3.10.0050.00323.66
8.3.00.0040.00419.78
8.2.180.0070.01016.38
8.2.170.0120.00622.96
8.2.160.0170.00019.21
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0070.00021.07
8.2.120.0120.00626.35
8.2.110.0060.00321.12
8.2.100.0070.00418.22
8.2.90.0000.00819.08
8.2.80.0000.00818.04
8.2.70.0030.00617.75
8.2.60.0090.00017.80
8.2.50.0050.00318.10
8.2.40.0040.00420.46
8.2.30.0030.00619.29
8.2.20.0000.00717.94
8.2.10.0070.00018.12
8.2.00.0000.00718.18
8.1.280.0040.01125.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0040.00719.04
8.1.220.0040.00417.77
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.25
8.1.180.0000.00718.10
8.1.170.0000.00818.56
8.1.160.0040.00418.88
8.1.150.0000.00720.77
8.1.140.0080.00319.58
8.1.130.0070.00018.89
8.1.120.0040.00417.45
8.1.110.0050.00317.43
8.1.100.0030.00517.35
8.1.90.0040.00417.37
8.1.80.0070.00017.47
8.1.70.0040.00417.45
8.1.60.0060.00317.51
8.1.50.0050.00317.49
8.1.40.0040.00417.39
8.1.30.0000.00817.58
8.1.20.0040.00417.66
8.1.10.0040.00417.45
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0000.00717.30
8.0.260.0030.00316.87
8.0.250.0000.00717.03
8.0.240.0000.00717.01
8.0.230.0030.00316.98
8.0.220.0000.00716.97
8.0.210.0000.00716.96
8.0.200.0040.00417.04
8.0.190.0040.00416.97
8.0.180.0080.00016.93
8.0.170.0000.00716.87
8.0.160.0030.00316.84
8.0.150.0070.00016.88
8.0.140.0050.00216.96
8.0.130.0030.00313.36
8.0.120.0000.00716.89
8.0.110.0070.00017.06
8.0.100.0070.00016.95
8.0.90.0040.00416.84
8.0.80.0120.00416.90
8.0.70.0030.00616.78
8.0.60.0060.00316.67
8.0.50.0030.00516.77
8.0.30.0090.00917.06
8.0.20.0130.00717.40
8.0.10.0040.00416.99
8.0.00.0080.01116.84
7.4.330.0020.00215.55
7.4.320.0030.00316.34
7.4.300.0000.00716.50
7.4.290.0030.00316.45
7.4.280.0000.00716.44
7.4.270.0030.00316.52
7.4.260.0000.00716.49
7.4.250.0050.00316.35
7.4.240.0000.00816.43
7.4.230.0000.00716.51
7.4.220.0110.00716.36
7.4.210.0030.01716.55
7.4.200.0070.00016.56
7.4.160.0090.00916.49
7.4.150.0030.01917.40
7.4.140.0120.00617.86
7.4.130.0100.00916.41
7.4.120.0070.01216.43
7.4.110.0030.01316.25
7.4.100.0090.00916.52
7.4.90.0100.01016.38
7.4.80.0000.02419.39
7.4.70.0090.00916.60
7.4.60.0060.01016.54
7.4.50.0080.00816.43
7.4.40.0140.00316.35
7.4.30.0060.00916.38
7.4.00.0140.00314.74
7.3.330.0030.00313.07
7.3.320.0030.00313.14
7.3.310.0040.00416.19
7.3.300.0070.00016.39
7.3.290.0090.00616.27
7.3.280.0070.01016.29
7.3.270.0030.01317.40
7.3.260.0120.00716.49
7.3.250.0150.00416.51
7.3.240.0060.01116.39
7.3.230.0150.00916.54
7.3.210.0110.00716.41
7.3.200.0130.01016.60
7.3.190.0080.00916.22
7.3.180.0130.00316.45
7.3.170.0000.01616.25
7.3.160.0120.00316.37
7.2.330.0090.00916.36
7.2.320.0030.01516.64
7.2.310.0160.00016.48
7.2.300.0000.01716.73
7.2.290.0060.01316.45
7.2.80.0320.00314.91
7.2.70.0430.00015.04
7.2.60.0610.00814.98
7.2.50.0280.00915.22
7.2.40.0310.00415.21
7.2.30.1080.01314.86
7.2.20.0350.00615.16
7.2.10.0550.01015.13
7.2.00.0200.00917.23
7.1.200.0300.01313.73
7.1.190.0300.01013.91
7.1.180.0350.00713.78
7.1.170.0390.00313.64
7.1.160.0300.01013.98
7.1.150.0310.00713.66
7.1.140.0530.01213.81
7.1.130.0400.00713.60
7.1.120.0330.00714.08
7.1.110.0340.00313.84
7.1.100.0340.00315.76
7.1.90.0480.00313.90
7.1.80.0580.00913.95
7.1.70.0270.00914.52
7.1.60.0490.00532.42
7.1.50.0540.01032.31
7.1.40.0570.00832.12
7.1.30.0420.01631.87
7.1.20.1210.01032.12
7.1.10.0370.01214.13
7.1.00.0270.00514.40
7.0.310.0280.00613.54
7.0.300.0300.00313.31
7.0.290.0390.01113.57
7.0.280.0290.00613.56
7.0.270.0670.00413.50
7.0.260.0600.00913.76
7.0.250.0480.00313.30
7.0.240.0570.00613.64
7.0.230.0570.00413.56
7.0.220.0750.00313.56
7.0.210.0550.00713.69
7.0.200.0370.00614.29
7.0.190.0330.01114.10
7.0.180.0340.00813.87
7.0.170.0270.01013.83
7.0.160.0360.00813.91
7.0.150.0730.01013.98
7.0.140.0330.00514.00
7.0.130.0330.01113.96
7.0.120.0440.00914.16
7.0.110.0410.00614.05
7.0.100.0300.01414.13
7.0.90.0250.00913.98
7.0.80.0270.00914.10
7.0.70.0250.01213.88
7.0.60.0350.01213.79
7.0.50.0260.01414.22
7.0.40.0290.01114.03
7.0.30.0260.01114.20
7.0.20.0390.00614.03
7.0.10.0340.00814.16
7.0.00.0360.00614.11

preferences:
44.52 ms | 401 KiB | 5 Q