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($arr1 + $arr2 + $arr3); ?>

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.00618.43
8.3.60.0110.01118.43
8.3.50.0050.01422.11
8.3.40.0110.00418.73
8.3.30.0090.00420.21
8.3.20.0000.00820.13
8.3.10.0040.00421.92
8.3.00.0040.00422.28
8.2.190.0070.00718.42
8.2.180.0160.00616.75
8.2.170.0100.00722.96
8.2.160.0130.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00926.16
8.2.120.0030.00519.66
8.2.110.0030.00622.20
8.2.100.0090.00317.97
8.2.90.0080.00018.03
8.2.80.0040.00417.97
8.2.70.0060.00317.61
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0100.00017.91
8.2.30.0040.00418.15
8.2.20.0080.00017.64
8.2.10.0050.00317.80
8.2.00.0090.00017.80
8.1.280.0140.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.45
8.1.230.0080.00420.94
8.1.220.0050.00317.74
8.1.210.0000.00818.89
8.1.200.0000.01017.35
8.1.190.0060.00317.41
8.1.180.0000.00720.19
8.1.170.0070.00318.41
8.1.160.0000.00722.09
8.1.150.0060.00318.55
8.1.140.0070.00017.49
8.1.130.0000.00717.74
8.1.120.0000.00717.42
8.1.110.0050.00217.36
8.1.100.0030.00517.54
8.1.90.0030.00317.49
8.1.80.0040.00317.45
8.1.70.0000.00717.34
8.1.60.0030.00517.49
8.1.50.0000.00717.55
8.1.40.0040.00417.54
8.1.30.0000.00817.61
8.1.20.0040.00417.63
8.1.10.0040.00417.57
8.1.00.0040.00417.61
8.0.300.0080.00020.04
8.0.290.0000.00816.93
8.0.280.0000.00718.36
8.0.270.0070.00017.26
8.0.260.0040.00416.80
8.0.250.0000.00717.00
8.0.240.0030.00617.03
8.0.230.0040.00316.95
8.0.220.0030.00317.00
8.0.210.0030.00316.81
8.0.200.0030.00317.01
8.0.190.0070.00017.04
8.0.180.0030.00316.87
8.0.170.0030.00516.98
8.0.160.0030.00316.82
8.0.150.0080.00016.89
8.0.140.0000.00716.80
8.0.130.0000.00513.34
8.0.120.0000.00816.86
8.0.110.0040.00416.92
8.0.100.0000.00816.90
8.0.90.0070.00016.73
8.0.80.0080.00816.90
8.0.70.0000.00816.87
8.0.60.0000.00716.95
8.0.50.0050.00316.82
8.0.30.0140.00317.24
8.0.20.0110.01017.40
8.0.10.0040.00416.93
8.0.00.0140.00816.66
7.4.330.0070.00015.00
7.4.320.0060.00016.38
7.4.300.0040.00416.54
7.4.290.0030.00316.53
7.4.280.0070.00016.51
7.4.270.0070.00016.53
7.4.260.0060.00316.48
7.4.250.0040.00416.46
7.4.240.0010.00616.55
7.4.230.0030.00316.70
7.4.220.0100.01016.54
7.4.210.0060.01016.55
7.4.200.0030.00316.48
7.4.190.0000.00716.54
7.4.160.0080.00816.40
7.4.150.0060.01217.40
7.4.140.0170.00217.86
7.4.130.0070.01016.57
7.4.120.0080.00916.51
7.4.110.0100.00616.45
7.4.100.0090.00916.52
7.4.90.0080.01516.33
7.4.80.0120.00619.39
7.4.70.0120.00616.63
7.4.60.0130.00316.36
7.4.50.0000.00916.37
7.4.40.0090.00622.77
7.4.30.0130.00316.36
7.4.00.0050.00915.07
7.3.330.0050.00013.13
7.3.320.0000.00513.39
7.3.310.0030.00316.32
7.3.300.0000.00716.21
7.3.290.0100.01016.43
7.3.280.0070.00916.34
7.3.270.0080.00817.40
7.3.260.0140.00716.38
7.3.250.0080.00916.30
7.3.240.0070.01016.45
7.3.230.0120.01216.39
7.3.210.0110.00716.40
7.3.200.0080.00819.39
7.3.190.0100.00716.37
7.3.180.0080.00816.34
7.3.170.0140.00316.43
7.3.160.0130.00916.55
7.3.120.0060.01114.84
7.3.110.0060.01014.71
7.3.100.0080.00714.93
7.3.90.0070.01015.00
7.3.80.0060.00614.89
7.3.70.0030.01014.94
7.3.60.0040.00914.70
7.3.50.0030.00914.85
7.3.40.0070.00614.85
7.3.30.0010.01114.86
7.3.20.0070.00716.58
7.3.10.0060.00616.60
7.3.00.0100.00416.53
7.2.330.0120.00616.66
7.2.320.0160.01016.77
7.2.310.0030.02016.52
7.2.300.0180.00616.36
7.2.290.0120.00616.59
7.2.250.0080.01015.05
7.2.240.0070.01414.99
7.2.230.0060.00814.81
7.2.220.0050.00814.77
7.2.210.0090.00715.13
7.2.200.0080.00814.89
7.2.190.0070.00914.94
7.2.180.0090.00714.88
7.2.170.0070.00814.90
7.2.60.0040.00416.63
7.2.00.0060.00619.42
7.1.330.0070.00515.88
7.1.320.0050.00515.69
7.1.310.0060.01015.91
7.1.300.0060.00915.93
7.1.290.0030.00915.88
7.1.280.0050.01015.57
7.1.270.0100.00315.93
7.1.260.0080.00515.65
7.1.200.0060.00915.85
7.1.100.0060.00618.13
7.1.70.0070.00717.28
7.1.60.0000.01719.43
7.1.50.0030.01817.01
7.1.00.0030.03322.32
7.0.200.0070.00016.84
7.0.140.0030.07322.00
7.0.60.0100.06319.79
7.0.50.0000.04317.84
7.0.40.0100.04020.24
7.0.30.0300.04020.16
7.0.20.0400.04020.23
7.0.10.0330.07320.26
7.0.00.0070.04320.23
5.6.280.0100.06720.89
5.6.210.0170.07720.78
5.6.200.0100.07718.15
5.6.190.0170.07720.59
5.6.180.0270.08020.77
5.6.170.0200.08020.55
5.6.160.0030.04320.54
5.6.150.0030.07018.27
5.6.140.0100.03318.16
5.6.130.0100.07718.21
5.6.120.0130.07721.00
5.6.110.0100.05721.13
5.6.100.0070.06021.03
5.6.90.0100.07720.98
5.6.80.0070.07720.36
5.6.70.0430.06020.48
5.5.350.0070.08020.29
5.5.340.0070.08317.94
5.5.330.0030.08720.13
5.5.320.0230.06020.28
5.5.310.0270.08020.18
5.5.300.0070.08017.97
5.5.290.0100.05017.94
5.5.280.0030.04720.74
5.5.270.0100.07720.86
5.5.260.0130.04320.86
5.5.250.0130.07320.61
5.5.240.0130.03320.26
5.4.450.0500.04719.41
5.4.440.0830.06019.63
5.4.430.0970.05719.20
5.4.420.0670.06019.32
5.4.410.0830.05319.35
5.4.400.0970.07018.87
5.4.390.1230.05718.70
5.4.380.0170.05718.80
5.4.370.0100.05318.77
5.4.360.0270.04318.74
5.4.350.0100.03312.02
5.4.340.0070.04812.02
5.4.320.0070.04712.50
5.4.310.0070.04012.50
5.4.300.0060.03712.50
5.4.290.0090.04512.50
5.4.280.0070.03812.39
5.4.270.0050.04212.40
5.4.260.0070.04212.39
5.4.250.0050.03712.40
5.4.240.0100.05018.99
5.4.230.0100.05718.83
5.4.220.0000.06718.98
5.4.210.0170.05319.00
5.4.200.0230.03718.80
5.4.190.0170.05018.64
5.4.180.0130.05718.75
5.4.170.0070.07018.97
5.4.160.0170.07318.73
5.4.150.0100.06018.92
5.4.140.0070.05716.37
5.4.130.0200.05016.36
5.4.120.0070.05316.47
5.4.110.0100.06716.40
5.4.100.0100.04716.46
5.4.90.0130.06716.48
5.4.80.0030.05316.31
5.4.70.0100.05016.49
5.4.60.0130.05316.48
5.4.50.0070.07316.38
5.4.40.0100.04716.44
5.4.30.0000.05316.63
5.4.20.0130.04016.58
5.4.10.0070.05316.37
5.4.00.0070.05015.82
5.3.290.0030.04112.80
5.3.280.0100.06314.43
5.3.270.0030.05714.61
5.3.260.0100.07014.68
5.3.250.0170.04314.51
5.3.240.0100.05714.43
5.3.230.0030.05014.78
5.3.220.0170.04314.65
5.3.210.0030.06314.39
5.3.200.0100.05014.55
5.3.190.0070.05314.73
5.3.180.0030.07014.57
5.3.170.0100.06014.61
5.3.160.0000.08014.39
5.3.150.0070.07014.47
5.3.140.0170.06014.78
5.3.130.0100.07014.64
5.3.120.0030.06714.38
5.3.110.0070.05314.63
5.3.100.0170.04014.26
5.3.90.0170.04014.10
5.3.80.0070.05714.25
5.3.70.0030.05314.00
5.3.60.0130.04314.00
5.3.50.0100.04713.96
5.3.40.0100.04714.02
5.3.30.0200.04714.01
5.3.20.0070.05013.78
5.3.10.0070.07013.48
5.3.00.0100.04713.71
5.2.170.0030.05310.97
5.2.160.0000.04711.14
5.2.150.0070.04311.22
5.2.140.0030.04311.22
5.2.130.0070.03711.17
5.2.120.0000.04311.07
5.2.110.0030.04011.18
5.2.100.0070.03710.93
5.2.90.0030.04011.19
5.2.80.0070.05311.08
5.2.70.0070.05311.27
5.2.60.0070.04311.12
5.2.50.0030.04710.92
5.2.40.0000.04311.07
5.2.30.0070.04310.82
5.2.20.0000.04711.04
5.2.10.0070.03710.94
5.2.00.0000.04310.55
5.1.60.0030.05310.19
5.1.50.0030.04010.23
5.1.40.0070.03010.22
5.1.30.0100.03010.41
5.1.20.0030.04010.52
5.1.10.0130.0309.98
5.1.00.0030.03710.26
5.0.50.0030.0408.51
5.0.40.0070.0378.36
5.0.30.0030.0408.32
5.0.20.0030.0308.43
5.0.10.0030.0408.41
5.0.00.0030.0578.35
4.4.90.0000.0276.88
4.4.80.0030.0206.88
4.4.70.0000.0306.88
4.4.60.0030.0276.88
4.4.50.0000.0276.88
4.4.40.0000.0406.88
4.4.30.0100.0206.88
4.4.20.0030.0206.88
4.4.10.0070.0206.88
4.4.00.0000.0336.88
4.3.110.0030.0276.88
4.3.100.0000.0236.88
4.3.90.0000.0336.88
4.3.80.0030.0336.88
4.3.70.0000.0236.88
4.3.60.0070.0276.88
4.3.50.0030.0306.88
4.3.40.0000.0436.88
4.3.30.0000.0236.88
4.3.20.0000.0306.88
4.3.10.0030.0206.88
4.3.00.0030.0206.84

preferences:
79.71 ms | 401 KiB | 5 Q