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; $arr1 = array("a"); $arr2 = array("b"); $arr2 = array("a"); print_r(array_merge($arr1, $arr2)); ?>

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.0000.01418.73
8.3.30.0070.00720.20
8.3.20.0030.00520.34
8.3.10.0080.00021.82
8.3.00.0050.00322.46
8.2.170.0040.01122.96
8.2.160.0070.00720.28
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0070.00322.25
8.2.100.0080.00317.91
8.2.90.0050.00317.91
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0060.00318.07
8.2.40.0080.00317.95
8.2.30.0040.00418.09
8.2.20.0050.00317.71
8.2.10.0050.00317.79
8.2.00.0070.00417.80
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.64
8.1.230.0030.00921.05
8.1.220.0040.00417.74
8.1.210.0000.00818.85
8.1.200.0040.00417.22
8.1.190.0050.00317.40
8.1.180.0030.00620.17
8.1.170.0070.00318.62
8.1.160.0070.00022.20
8.1.150.0040.00418.65
8.1.140.0040.00417.49
8.1.130.0030.00317.74
8.1.120.0030.00517.38
8.1.110.0040.00417.43
8.1.100.0040.00417.43
8.1.90.0040.00417.34
8.1.80.0040.00417.39
8.1.70.0000.00717.36
8.1.60.0040.00417.64
8.1.50.0040.00417.52
8.1.40.0040.00417.47
8.1.30.0030.00617.50
8.1.20.0050.00317.62
8.1.10.0000.00717.36
8.1.00.0040.00417.43
8.0.300.0040.00420.03
8.0.290.0000.00717.15
8.0.280.0030.00318.44
8.0.270.0000.00717.29
8.0.260.0040.00416.89
8.0.250.0050.00216.98
8.0.240.0000.00717.00
8.0.230.0000.00716.86
8.0.220.0000.00616.97
8.0.210.0050.00316.93
8.0.200.0000.00717.05
8.0.190.0060.00316.98
8.0.180.0000.00716.92
8.0.170.0000.00816.86
8.0.160.0000.00716.89
8.0.150.0050.00316.89
8.0.140.0000.00716.84
8.0.130.0000.00513.41
8.0.120.0040.00416.91
8.0.110.0000.00716.86
8.0.100.0070.00017.01
8.0.90.0040.00416.88
8.0.80.0070.00716.93
8.0.70.0000.00816.84
8.0.60.0070.00016.89
8.0.50.0050.00316.80
8.0.30.0150.00816.90
8.0.20.0070.01217.40
8.0.10.0070.00017.02
8.0.00.0110.01216.71
7.4.330.0070.00015.00
7.4.320.0000.00616.39
7.4.300.0000.00916.55
7.4.290.0030.00316.43
7.4.280.0000.00716.55
7.4.270.0070.00016.46
7.4.260.0030.00616.47
7.4.250.0040.00416.43
7.4.240.0000.00816.40
7.4.230.0070.00016.34
7.4.220.0030.01616.38
7.4.210.0080.00916.46
7.4.200.0000.00716.28
7.4.190.0000.00716.34
7.4.160.0000.01816.15
7.4.150.0080.01317.40
7.4.140.0090.00817.86
7.4.130.0060.01316.39
7.4.120.0070.01316.38
7.4.110.0100.01316.15
7.4.100.0150.00616.54
7.4.90.0050.01316.48
7.4.80.0000.01619.39
7.4.70.0160.00016.48
7.4.60.0160.00616.50
7.4.50.0040.00416.34
7.4.40.0070.00722.77
7.4.30.0040.01416.42
7.4.00.0060.00314.84
7.3.330.0050.00013.05
7.3.320.0030.00213.13
7.3.310.0000.00616.22
7.3.300.0000.00716.21
7.3.290.0060.00916.25
7.3.280.0080.00716.21
7.3.270.0150.00317.40
7.3.260.0040.01516.50
7.3.250.0090.00816.24
7.3.240.0170.00016.11
7.3.230.0140.00416.53
7.3.210.0060.01016.31
7.3.200.0110.00919.39
7.3.190.0180.00316.25
7.3.180.0090.00616.25
7.3.170.0110.00416.52
7.3.160.0130.00816.45
7.3.120.0040.01414.69
7.2.330.0100.01016.62
7.2.320.0090.01316.31
7.2.310.0060.01516.68
7.2.300.0120.01116.46
7.2.290.0130.01016.67
7.2.00.0040.00819.11
7.1.100.0110.00618.12
7.1.70.0030.00617.02
7.1.60.0030.01319.43
7.1.50.0030.00916.62
7.1.00.0000.03722.48
7.0.200.0040.00416.86
7.0.140.0030.07322.00
7.0.60.0070.05720.02
7.0.50.0100.03717.86
7.0.40.0030.04320.18
7.0.30.0300.05020.23
7.0.20.0300.06320.23
7.0.10.0100.05020.26
7.0.00.0070.04020.29
5.6.280.0000.07320.92
5.6.210.0100.05720.76
5.6.200.0030.04018.15
5.6.190.0000.08720.77
5.6.180.0300.07720.41
5.6.170.0200.03720.71
5.6.160.0100.05720.75
5.6.150.0030.04018.21
5.6.140.0100.03318.28
5.6.130.0030.07318.17
5.6.120.0070.05721.00
5.6.110.0070.03721.04
5.6.100.0070.08020.98
5.6.90.0170.07020.97
5.6.80.0000.04020.54
5.5.350.3230.03020.29
5.5.340.0070.07317.97
5.5.330.0130.07720.40
5.5.320.0270.07720.27
5.5.310.0270.05020.51
5.5.300.0030.08317.99
5.5.290.0130.07018.01
5.5.280.0030.04320.78
5.5.270.0230.07320.65
5.5.260.0000.04320.64
5.5.250.0130.07720.65
5.5.240.0030.03720.16
5.4.450.0330.04019.42
5.4.440.0430.06019.48
5.4.430.0400.05719.19
5.4.420.0470.05319.53
5.4.410.0330.05019.42
5.4.400.0330.03719.23
5.4.390.0300.03718.99
5.4.380.0430.04318.86
5.4.370.0300.04019.18
5.4.360.0400.06019.17
5.4.350.0370.05019.20
5.4.340.0300.05318.86
5.4.320.0500.06319.16
5.4.310.0500.05718.95
5.4.300.0370.05019.14
5.4.290.0430.07018.86
5.4.280.0430.06319.08
5.4.270.0330.04719.13
5.4.260.0400.03318.97
5.4.250.0500.05719.20
5.4.240.0330.04018.82
5.4.230.0400.06018.97
5.4.220.0430.05019.07
5.4.210.0230.05318.95
5.4.200.0430.06719.21
5.4.190.0330.04718.98
5.4.180.0370.07019.13
5.4.170.0470.04019.15
5.4.160.0370.07719.09
5.4.150.0470.06319.14
5.4.140.0330.04016.34
5.4.130.0300.03316.33
5.4.120.0430.06316.66
5.4.110.0430.06316.25
5.4.100.0300.04716.45
5.4.90.0400.04716.54
5.4.80.0400.06316.20
5.4.70.0500.03016.24
5.4.60.0400.04716.34
5.4.50.0330.05716.43
5.4.40.0430.06716.51
5.4.30.0370.04716.21
5.4.20.0370.06316.32
5.4.10.0470.06716.38
5.4.00.0400.04315.94
5.3.290.0430.06314.75
5.3.280.0400.06014.60
5.3.270.0370.06714.52
5.3.260.0270.04714.51
5.3.250.0300.05714.75
5.3.240.0300.05714.59
5.3.230.0370.07314.76
5.3.220.0400.05714.47
5.3.210.0430.06314.55
5.3.200.0300.04714.48
5.3.190.0400.06714.55
5.3.180.0330.04014.68
5.3.170.0370.03014.46
5.3.160.0530.05314.57
5.3.150.0430.07014.64
5.3.140.0430.06314.63
5.3.130.0400.06014.55
5.3.120.0470.04014.45
5.3.110.0400.06714.45
5.3.100.0400.06713.95
5.3.90.0370.06714.10
5.3.80.0370.05713.94
5.3.70.0400.05014.07
5.3.60.0470.03713.91
5.3.50.0370.05714.06
5.3.40.0430.02713.93
5.3.30.0430.06013.82
5.3.20.0430.04013.84
5.3.10.0330.05013.77
5.3.00.0430.06313.72
5.2.170.0400.03312.22
5.2.160.0400.03312.22
5.2.150.0400.05012.22
5.2.140.0300.03712.22
5.2.130.0370.05312.22
5.2.120.0230.03712.22
5.2.110.0300.04012.22
5.2.100.0300.02712.22
5.2.90.0230.03012.22
5.2.80.0200.04312.22
5.2.70.0370.04012.22
5.2.60.0330.03312.22
5.2.50.0300.05712.22
5.2.40.0230.04712.22
5.2.30.0330.04312.22
5.2.20.0270.05712.22
5.2.10.0270.03712.22
5.2.00.0270.05312.22
5.1.60.0270.04712.22
5.1.50.0300.04712.22
5.1.40.0300.04312.22
5.1.30.0200.04012.22
5.1.20.0300.04312.22
5.1.10.0200.03012.22
5.1.00.0300.02012.22
5.0.50.0170.01712.22
5.0.40.0100.02312.22
5.0.30.0130.05012.22
5.0.20.0100.02312.22
5.0.10.0170.03312.22
5.0.00.0170.03712.22
4.4.90.0100.01712.22
4.4.80.0100.01712.22
4.4.70.0100.03712.22
4.4.60.0100.02712.22
4.4.50.0130.02012.22
4.4.40.0270.03012.22
4.4.30.0170.02312.22
4.4.20.0170.02712.22
4.4.10.0170.02312.22
4.4.00.0130.04712.22
4.3.110.0100.01712.22
4.3.100.0100.03312.22
4.3.90.0130.02012.22
4.3.80.0130.02312.22
4.3.70.0130.01312.22
4.3.60.0130.01312.22
4.3.50.0100.03712.22
4.3.40.0130.05012.22
4.3.30.0070.02712.22
4.3.20.0070.02712.22
4.3.10.0100.03012.22
4.3.00.0030.01712.22

preferences:
46.36 ms | 400 KiB | 5 Q