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; ?>

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.0040.01118.56
8.3.60.0070.01018.31
8.3.50.0150.00522.05
8.3.40.0120.00318.98
8.3.30.0100.00320.35
8.3.20.0080.00020.16
8.3.10.0050.00321.96
8.3.00.0040.00422.39
8.2.190.0070.01018.35
8.2.180.0000.02116.50
8.2.170.0080.00822.96
8.2.160.0140.00720.16
8.2.150.0000.00825.66
8.2.140.0000.00724.66
8.2.130.0090.00026.16
8.2.120.0030.00619.66
8.2.110.0030.00622.13
8.2.100.0080.00417.84
8.2.90.0000.00817.91
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0030.00518.33
8.2.30.0070.00018.05
8.2.20.0000.00817.72
8.2.10.0040.00417.75
8.2.00.0100.00017.68
8.1.280.0070.00725.92
8.1.270.0050.00324.66
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.54
8.1.230.0040.00720.98
8.1.220.0000.00817.74
8.1.210.0060.00318.99
8.1.200.0030.00617.34
8.1.190.0030.00517.40
8.1.180.0000.00818.88
8.1.170.0030.00618.63
8.1.160.0000.00722.07
8.1.150.0000.00718.63
8.1.140.0000.00817.44
8.1.130.0030.00517.78
8.1.120.0070.00017.42
8.1.110.0000.00717.36
8.1.100.0070.00017.43
8.1.90.0000.00717.49
8.1.80.0000.00717.39
8.1.70.0030.00317.42
8.1.60.0030.00617.54
8.1.50.0000.00817.46
8.1.40.0040.00417.41
8.1.30.0000.00817.64
8.1.20.0040.00417.55
8.1.10.0000.00817.60
8.1.00.0000.00717.51
8.0.300.0000.00719.79
8.0.290.0040.00417.18
8.0.280.0030.00718.40
8.0.270.0070.00017.25
8.0.260.0030.00316.79
8.0.250.0070.00017.01
8.0.240.0000.00816.91
8.0.230.0040.00416.98
8.0.220.0030.00316.84
8.0.210.0030.00316.89
8.0.200.0030.00317.04
8.0.190.0040.00416.93
8.0.180.0040.00417.00
8.0.170.0030.00516.90
8.0.160.0070.00017.03
8.0.150.0020.00516.99
8.0.140.0030.00416.93
8.0.130.0030.00313.37
8.0.120.0000.00816.84
8.0.110.0000.00716.90
8.0.100.0070.00017.01
8.0.90.0000.00716.85
8.0.80.0030.01817.00
8.0.70.0070.00017.00
8.0.60.0040.00416.84
8.0.50.0040.00416.86
8.0.30.0100.00917.22
8.0.20.0100.00717.40
8.0.10.0040.00416.99
8.0.00.0040.01517.03
7.4.330.0000.00615.00
7.4.320.0030.00316.45
7.4.300.0000.01016.55
7.4.290.0040.00416.38
7.4.280.0000.00716.42
7.4.270.0000.00716.38
7.4.260.0070.00016.53
7.4.250.0040.00416.48
7.4.240.0050.00216.49
7.4.230.0060.00016.60
7.4.220.0110.00716.48
7.4.210.0040.01016.48
7.4.200.0070.00016.55
7.4.190.0070.00016.68
7.4.160.0060.00916.51
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0110.00616.50
7.4.120.0060.01016.44
7.4.110.0040.01416.28
7.4.100.0120.00816.37
7.4.90.0060.01516.33
7.4.80.0070.01019.39
7.4.70.0160.00316.31
7.4.60.0060.01016.44
7.4.50.0040.00416.23
7.4.40.0070.00722.77
7.4.30.0120.00816.56
7.4.00.0050.01214.64
7.3.330.0060.00013.15
7.3.320.0030.00313.29
7.3.310.0050.00516.41
7.3.300.0000.00716.14
7.3.290.0100.00916.21
7.3.280.0120.00416.29
7.3.270.0130.00317.40
7.3.260.0100.01016.46
7.3.250.0120.00716.42
7.3.240.0140.00316.28
7.3.230.0050.01116.39
7.3.210.0070.01016.57
7.3.200.0060.01519.39
7.3.190.0070.01016.34
7.3.180.0060.00916.47
7.3.170.0080.00816.51
7.3.160.0080.01316.43
7.3.120.0050.01214.77
7.3.110.0030.01414.93
7.3.100.0110.00014.77
7.3.90.0060.00914.83
7.3.80.0030.00614.75
7.3.70.0060.00614.64
7.3.60.0070.00414.76
7.3.50.0000.00914.78
7.3.40.0080.00014.38
7.3.30.0030.00514.78
7.3.20.0040.00716.56
7.3.10.0000.01316.59
7.3.00.0090.00016.46
7.2.330.0140.00716.71
7.2.320.0060.01216.70
7.2.310.0040.01416.70
7.2.300.0100.01016.40
7.2.290.0100.01116.57
7.2.250.0090.00914.75
7.2.240.0030.01715.29
7.2.230.0150.00015.27
7.2.220.0000.01214.91
7.2.210.0040.01115.00
7.2.200.0040.00714.97
7.2.190.0040.00714.88
7.2.180.0060.00914.85
7.2.170.0000.01414.81
7.2.00.0100.00319.11
7.1.330.0030.01015.73
7.1.320.0000.01315.73
7.1.310.0070.00715.91
7.1.300.0040.00715.55
7.1.290.0070.00315.71
7.1.280.0000.01315.91
7.1.270.0030.00615.68
7.1.260.0000.00915.90
7.1.100.0070.00718.22
7.1.70.0000.01017.03
7.1.60.0040.01219.43
7.1.50.0070.01716.98
7.1.00.0000.04022.28
7.0.200.0000.01016.75
7.0.140.0070.07022.00
7.0.60.0070.03719.82
7.0.50.0070.06317.93
7.0.40.0100.07020.13
7.0.30.0200.04320.16
7.0.20.0130.08720.07
7.0.10.0170.04320.16
7.0.00.0070.04320.16
5.6.280.0000.07721.09
5.6.210.0030.08320.47
5.6.200.0130.08018.27
5.6.190.0070.08720.61
5.6.180.0200.04020.49
5.6.170.0430.06020.48
5.6.160.0000.04320.45
5.6.150.0070.07018.12
5.6.140.0030.04018.23
5.6.130.0030.05318.28
5.6.120.0130.07721.12
5.6.110.0130.07321.03
5.6.100.0170.07720.98
5.6.90.0000.08021.16
5.6.80.0170.08020.29
5.6.70.0330.06320.52
5.5.350.0030.08020.30
5.5.340.0130.07017.93
5.5.330.0100.08020.37
5.5.320.0230.06720.27
5.5.310.0200.07720.27
5.5.300.0100.08018.01
5.5.290.0030.06317.98
5.5.280.0070.03720.80
5.5.270.0100.08320.87
5.5.260.0100.07320.88
5.5.250.0100.07720.77
5.5.240.0030.05720.19
5.4.450.0670.06019.58
5.4.440.0930.05719.56
5.4.430.1030.06719.42
5.4.420.0930.06019.30
5.4.410.1100.05019.04
5.4.400.1030.05318.53
5.4.390.1270.05318.82
5.4.380.0270.05018.53
5.4.370.0100.05318.59
5.4.360.0070.05718.64
5.4.350.0090.04412.02
5.4.340.0070.04312.02
5.4.320.0050.03612.50
5.4.310.0050.04312.50
5.4.300.0040.03712.50
5.4.290.0050.04112.50
5.4.280.0090.03212.39
5.4.270.0050.04112.39
5.4.260.0100.03912.40
5.4.250.0080.04212.40
5.4.240.0200.04018.97
5.4.230.0200.04019.03
5.4.220.0130.06718.97
5.4.210.0030.06019.00
5.4.200.0100.05718.78
5.4.190.0200.05018.74
5.4.180.0130.04718.94
5.4.170.0130.05718.97
5.4.160.0100.05018.96
5.4.150.0100.05318.98
5.4.140.0070.05316.52
5.4.130.0070.05716.55
5.4.120.0200.05716.36
5.4.110.0030.08016.36
5.4.100.0130.04716.39
5.4.90.0100.04316.39
5.4.80.0030.05316.45
5.4.70.0030.05716.37
5.4.60.0030.05716.45
5.4.50.0130.04016.46
5.4.40.0030.06316.56
5.4.30.0070.07016.48
5.4.20.0130.06716.36
5.4.10.0170.04716.36
5.4.00.0070.04715.80
5.3.290.0050.04312.80
5.3.280.0130.05014.58
5.3.270.0130.05014.61
5.3.260.0070.05014.78
5.3.250.0070.07014.69
5.3.240.0200.06314.57
5.3.230.0030.05714.58
5.3.220.0130.04714.55
5.3.210.0100.07014.39
5.3.200.0130.06014.57
5.3.190.0100.05314.71
5.3.180.0170.04314.63
5.3.170.0100.04714.58
5.3.160.0030.05314.46
5.3.150.0000.05314.64
5.3.140.0130.06014.69
5.3.130.0130.04714.63
5.3.120.0070.05314.54
5.3.110.0230.06014.62
5.3.100.0100.05714.16
5.3.90.0100.04714.01
5.3.80.0030.05313.99
5.3.70.0070.05014.23
5.3.60.0030.07013.98
5.3.50.0100.04713.85
5.3.40.0100.04714.13
5.3.30.0070.05013.89
5.3.20.0100.06013.60
5.3.10.0030.07313.73
5.3.00.0030.05313.86
5.2.170.0130.03311.30
5.2.160.0100.03311.30
5.2.150.0100.05711.05
5.2.140.0070.04011.11
5.2.130.0070.05011.05
5.2.120.0130.03311.29
5.2.110.0100.03711.27
5.2.100.0070.04011.28
5.2.90.0170.03311.18
5.2.80.0000.06011.05
5.2.70.0000.05011.31
5.2.60.0030.06311.11
5.2.50.0170.03711.23
5.2.40.0130.05011.00
5.2.30.0100.06011.15
5.2.20.0030.05010.91
5.2.10.0100.03710.94
5.2.00.0100.04010.80
5.1.60.0000.04310.06
5.1.50.0030.04710.09
5.1.40.0100.03010.02
5.1.30.0070.03010.16
5.1.20.0070.03310.44
5.1.10.0070.03010.05
5.1.00.0030.03310.03
5.0.50.0000.0338.64
5.0.40.0000.0478.38
5.0.30.0100.0378.29
5.0.20.0070.0338.17
5.0.10.0030.0408.00
5.0.00.0100.0507.99
4.4.90.0030.0236.64
4.4.80.0030.0236.64
4.4.70.0000.0236.64
4.4.60.0070.0276.64
4.4.50.0130.0236.64
4.4.40.0030.0376.64
4.4.30.0000.0306.64
4.4.20.0070.0176.64
4.4.10.0000.0236.64
4.4.00.0070.0436.64
4.3.110.0030.0336.64
4.3.100.0030.0206.64
4.3.90.0030.0206.64
4.3.80.0100.0276.64
4.3.70.0030.0306.64
4.3.60.0030.0206.64
4.3.50.0000.0276.64
4.3.40.0100.0276.64
4.3.30.0000.0236.64
4.3.20.0000.0276.64
4.3.10.0030.0236.64
4.3.00.0070.0236.84

preferences:
61.17 ms | 401 KiB | 5 Q