3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "C#maj7"; $qualityVal = ""; if (true) { $qualityVal .= substr($string, 2); } $num = 10; $num += 10; class Hello { public $world; public function __toString() { return "Hello!"; } } $hello = new Hello(); //$world = "world"; //echo $hello->$world; $hello->world = "world"; if ($hello->world) { echo "Hello!"; } else { echo "No!"; } ?>

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.0040.01818.68
8.3.50.0090.01221.99
8.3.40.0060.01018.96
8.3.30.0070.00720.29
8.3.20.0080.00020.35
8.3.10.0000.00822.13
8.3.00.0040.00422.43
8.2.180.0130.00916.63
8.2.170.0110.00322.96
8.2.160.0130.00020.52
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0090.00626.16
8.2.120.0000.00819.55
8.2.110.0000.01019.21
8.2.100.0110.00017.84
8.2.90.0040.00419.35
8.2.80.0000.00917.97
8.2.70.0040.00417.75
8.2.60.0040.00817.93
8.2.50.0060.00318.10
8.2.40.0040.00420.59
8.2.30.0000.00819.35
8.2.20.0040.00417.69
8.2.10.0070.00017.68
8.2.00.0060.00317.88
8.1.280.0030.01225.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.06
8.1.230.0080.00320.34
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0040.00418.85
8.1.150.0050.00320.14
8.1.140.0040.00417.46
8.1.130.0040.00417.87
8.1.120.0040.00417.38
8.1.110.0000.00717.46
8.1.100.0000.00717.43
8.1.90.0080.00017.49
8.1.80.0000.00817.34
8.1.70.0000.00717.44
8.1.60.0030.00617.55
8.1.50.0040.00417.52
8.1.40.0080.00017.41
8.1.30.0040.00417.59
8.1.20.0030.00517.66
8.1.10.0070.00017.62
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0000.00717.27
8.0.260.0000.00716.80
8.0.250.0030.00316.95
8.0.240.0000.00716.98
8.0.230.0030.00317.04
8.0.220.0020.00516.87
8.0.210.0040.00417.00
8.0.200.0000.00616.92
8.0.190.0070.00016.95
8.0.180.0030.00317.01
8.0.170.0050.00317.03
8.0.160.0030.00317.00
8.0.150.0070.00016.86
8.0.140.0030.00516.94
8.0.130.0000.00613.29
8.0.120.0050.00216.95
8.0.110.0000.00716.93
8.0.100.0000.00816.91
8.0.90.0000.00716.96
8.0.80.0040.01016.87
8.0.70.0000.00716.86
8.0.60.0040.00416.96
8.0.50.0050.00216.84
8.0.30.0140.00617.09
8.0.20.0090.00917.40
8.0.10.0000.00817.14
8.0.00.0130.01016.72
7.4.330.0000.00515.07
7.4.320.0000.00716.40
7.4.300.0080.00016.46
7.4.290.0000.00616.54
7.4.280.0000.00716.43
7.4.270.0000.00616.55
7.4.260.0000.01116.48
7.4.250.0000.00816.49
7.4.240.0010.00616.47
7.4.230.0000.00716.44
7.4.220.0090.00916.41
7.4.210.0060.01016.43
7.4.200.0030.00316.55
7.4.190.0070.00016.70
7.4.160.0110.01116.44
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0080.01116.51
7.4.120.0030.01616.59
7.4.110.0100.00716.40
7.4.100.0120.00616.64
7.4.90.0110.00716.44
7.4.80.0080.00819.39
7.4.70.0100.01316.40
7.4.60.0060.00916.44
7.4.50.0030.00616.45
7.4.40.0100.00722.77
7.4.30.0030.01316.55
7.4.00.0060.00315.03
7.3.330.0030.00213.13
7.3.320.0020.00213.28
7.3.310.0070.00016.42
7.3.300.0050.00316.31
7.3.290.0030.01516.29
7.3.280.0080.00816.30
7.3.270.0130.00617.40
7.3.260.0090.00916.34
7.3.250.0080.01016.48
7.3.240.0070.01016.32
7.3.230.0090.00616.39
7.3.210.0060.01116.39
7.3.200.0030.01319.39
7.3.190.0030.01416.16
7.3.180.0030.01316.58
7.3.170.0090.00616.63
7.3.160.0150.00016.23
7.3.120.0040.01414.83
7.2.330.0090.00916.54
7.2.320.0140.01016.70
7.2.310.0060.01016.36
7.2.300.0090.01216.38
7.2.290.0130.01216.41
7.2.60.0040.01116.51
7.2.00.0060.00619.60
7.1.200.0070.00715.52
7.1.100.0100.01018.02
7.1.70.0030.00617.19
7.1.60.0040.01419.43
7.1.50.0070.01717.04
7.1.00.0000.05722.37
7.0.200.0000.00716.46
7.0.140.0000.09322.19
7.0.60.0130.06020.04
7.0.50.0170.03717.72
7.0.40.0130.06720.05
7.0.30.0300.06020.09
7.0.20.0370.06320.26
7.0.10.0030.04320.25
7.0.00.0030.04320.14
5.6.210.0000.04320.73
5.6.200.0030.05718.18
5.6.190.0030.04720.38
5.6.180.0130.04320.61
5.6.170.0330.08320.43
5.6.160.0030.05720.41
5.6.150.0030.04018.29
5.6.140.0130.06718.14
5.6.130.0000.04318.19
5.6.120.0100.04020.97
5.6.110.0300.06721.00
5.6.100.0100.07721.14
5.6.90.0030.06720.97
5.6.80.0100.03720.42
5.5.350.0030.07020.40
5.5.340.0070.04317.99
5.5.330.0030.04320.43
5.5.320.0300.04720.39
5.5.310.0100.04320.23
5.5.300.0030.08317.99
5.5.290.0030.06018.02
5.5.280.0100.08020.76
5.5.270.0000.09320.68
5.5.260.0200.07020.93
5.5.250.0030.06020.61
5.5.240.0370.06720.18
5.4.450.0870.06019.47
5.4.440.0030.07019.61
5.4.430.0600.05719.46
5.4.420.0130.06319.46
5.4.410.0130.06319.33
5.4.400.0670.07019.30
5.4.390.0700.06019.15
5.4.380.0200.05718.56
5.4.370.0130.05318.59
5.4.360.0100.05318.59
5.4.350.0050.03712.02
5.4.340.0070.03912.01
5.4.320.0080.04312.50
5.4.310.0060.04212.50
5.4.300.0080.04012.50
5.4.290.0060.04412.50
5.4.280.0080.03412.39
5.4.270.0110.03112.39
5.4.260.0060.04112.39
5.4.250.0100.03512.39
5.4.240.0030.05719.00
5.4.230.0200.06018.94
5.4.220.0270.04718.80
5.4.210.0200.05018.96
5.4.200.0100.05718.90
5.4.190.0130.07318.65
5.4.180.0100.07718.84
5.4.170.0130.06718.76
5.4.160.0170.06018.76
5.4.150.0130.07018.73
5.4.140.0300.05716.37
5.4.130.0070.04716.39
5.4.120.0030.05016.39
5.4.110.0030.05316.55
5.4.100.0170.06316.47
5.4.90.0030.06016.41
5.4.80.0000.05716.55
5.4.70.0070.05316.60
5.4.60.0170.04016.50
5.4.50.0030.05316.59
5.4.40.0100.05716.50
5.4.30.0130.04316.43
5.4.20.0130.04316.59
5.4.10.0130.04316.47
5.4.00.0100.05015.81
5.3.290.0070.03812.80
5.3.280.0100.07014.66
5.3.270.0200.06714.67
5.3.260.0100.07714.82
5.3.250.0070.06714.63
5.3.240.0030.05314.67
5.3.230.0100.06714.43
5.3.220.0130.04714.54
5.3.210.0130.07014.79
5.3.200.0070.05014.65
5.3.190.0100.04714.65
5.3.180.0100.04714.64
5.3.170.0130.04714.56
5.3.160.0130.07314.74
5.3.150.0130.04314.58
5.3.140.0100.05314.64
5.3.130.0170.04314.52
5.3.120.0100.05314.54
5.3.110.0030.07314.38
5.3.100.0230.04014.25
5.3.90.0030.05314.07
5.3.80.0030.05014.11
5.3.70.0070.04714.18
5.3.60.0100.05714.08
5.3.50.0070.06713.97
5.3.40.0030.06014.12
5.3.30.0100.05714.07
5.3.20.0100.07013.60
5.3.10.0030.05313.75
5.3.00.0070.04713.71
5.2.170.0100.04711.13
5.2.160.0030.04311.36
5.2.150.0100.04711.05
5.2.140.0070.05311.20
5.2.130.0170.03311.16
5.2.120.0100.04011.08
5.2.110.0000.04311.32
5.2.100.0170.03011.00
5.2.90.0100.03311.17
5.2.80.0100.05011.17
5.2.70.0070.04711.31
5.2.60.0070.05311.12
5.2.50.0100.06011.18
5.2.40.0170.04311.04
5.2.30.0030.06011.15
5.2.20.0070.05311.03
5.2.10.0070.04011.03
5.2.00.0100.05010.80
5.1.60.0000.0409.91
5.1.50.0070.03010.10
5.1.40.0070.03310.02
5.1.30.0030.04010.41
5.1.20.0030.04310.44
5.1.10.0030.03310.26
5.1.00.0070.04010.13
5.0.50.0030.0408.58
5.0.40.0100.0308.50
5.0.30.0000.0478.14
5.0.20.0030.0278.29
5.0.10.0000.0338.41
5.0.00.0000.0478.14
4.4.90.0030.0236.56
4.4.80.0000.0276.56
4.4.70.0000.0306.56
4.4.60.0000.0336.56
4.4.50.0070.0176.56
4.4.40.0100.0376.56
4.4.30.0030.0276.56
4.4.20.0070.0206.56
4.4.10.0000.0236.56
4.4.00.0000.0376.56
4.3.110.0070.0206.56
4.3.100.0030.0206.56
4.3.90.0070.0176.56
4.3.80.0070.0406.56
4.3.70.0030.0176.56
4.3.60.0030.0176.56
4.3.50.0000.0236.56
4.3.40.0070.0376.56
4.3.30.0030.0206.56
4.3.20.0030.0206.56
4.3.10.0000.0236.56
4.3.00.0130.0208.09

preferences:
37.53 ms | 401 KiB | 5 Q