3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar($baz) { return strtoupper($baz); } public function test() { return "abc{$this->bar(def)}hij"; } } $foo = new Foo(); echo $foo->test();

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.0130.00618.43
8.3.50.0090.00921.27
8.3.40.0180.00318.66
8.3.30.0060.00919.02
8.3.20.0070.00019.91
8.3.10.0080.00021.92
8.3.00.0040.00422.49
8.2.180.0120.00316.88
8.2.170.0110.00722.96
8.2.160.0110.00319.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0100.00021.18
8.2.100.0060.00618.03
8.2.90.0050.00517.63
8.2.80.0050.00318.05
8.2.70.0040.00417.93
8.2.60.0000.00817.92
8.2.50.0040.00418.10
8.2.40.0060.00320.64
8.2.30.0040.00418.09
8.2.20.0070.00017.77
8.2.10.0030.00417.74
8.2.00.0030.00617.79
8.1.280.0170.00325.92
8.1.270.0090.00022.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.78
8.1.230.0090.00320.75
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0040.00418.48
8.1.160.0000.00722.05
8.1.150.0040.00418.54
8.1.140.0000.00817.49
8.1.130.0000.00817.74
8.1.120.0030.00317.46
8.1.110.0000.00717.34
8.1.100.0030.00517.35
8.1.90.0000.00717.33
8.1.80.0070.00017.37
8.1.70.0040.00417.32
8.1.60.0000.00817.47
8.1.50.0000.00717.50
8.1.40.0020.00517.49
8.1.30.0000.00817.55
8.1.20.0000.00817.58
8.1.10.0060.00317.52
8.1.00.0050.00317.43
8.0.300.0000.00721.50
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0030.00317.16
8.0.260.0080.00016.95
8.0.250.0030.00316.93
8.0.240.0040.00416.98
8.0.230.0040.00416.98
8.0.220.0070.00016.84
8.0.210.0070.00016.80
8.0.200.0000.00716.91
8.0.190.0000.00716.99
8.0.180.0030.00316.86
8.0.170.0080.00016.89
8.0.160.0040.00416.88
8.0.150.0050.00216.91
8.0.140.0040.00416.80
8.0.130.0000.00513.41
8.0.120.0000.00716.81
8.0.110.0080.00016.86
8.0.100.0040.00416.80
8.0.90.0050.00316.77
8.0.80.0060.00916.82
8.0.70.0030.00516.83
8.0.60.0000.00716.99
8.0.50.0040.00416.81
8.0.30.0090.01017.05
8.0.20.0070.01117.40
8.0.10.0000.00716.96
8.0.00.0080.01316.70
7.4.330.0020.00215.00
7.4.320.0000.00616.55
7.4.300.0060.00016.54
7.4.290.0040.00416.57
7.4.280.0070.00016.56
7.4.270.0040.00416.60
7.4.260.0000.00716.48
7.4.250.0000.00716.56
7.4.240.0030.00516.47
7.4.230.0030.00316.34
7.4.220.0070.01016.50
7.4.210.0080.00716.48
7.4.200.0000.00716.34
7.4.190.0020.00516.77
7.4.160.0060.00916.36
7.4.150.0090.00917.40
7.4.140.0140.00317.86
7.4.130.0070.00916.57
7.4.120.0040.01416.46
7.4.110.0120.00616.34
7.4.100.0110.01116.44
7.4.90.0130.01016.31
7.4.80.0160.00319.39
7.4.70.0120.00316.44
7.4.60.0040.01116.50
7.4.50.0040.00416.62
7.4.40.0090.00622.77
7.4.30.0080.00816.66
7.4.00.0060.00615.05
7.3.330.0000.00613.09
7.3.320.0000.00513.31
7.3.310.0030.00516.34
7.3.300.0070.00016.16
7.3.290.0070.00716.32
7.3.280.0090.00716.33
7.3.270.0190.00017.40
7.3.260.0100.00716.55
7.3.250.0110.00816.49
7.3.240.0130.01016.31
7.3.230.0000.02216.46
7.3.210.0060.01216.32
7.3.200.0110.01119.39
7.3.190.0090.00916.28
7.3.180.0090.00616.55
7.3.170.0090.00616.36
7.3.160.0050.01116.37
7.3.120.0060.01014.52
7.2.330.0120.00616.48
7.2.320.0080.01516.62
7.2.310.0100.00616.41
7.2.300.0120.00316.59
7.2.290.0060.01016.62
7.2.60.0070.00716.70
7.2.00.0000.01219.57
7.1.200.0080.00815.58
7.1.100.0030.00517.92
7.1.70.0030.01017.14
7.1.60.0180.00619.82
7.1.50.0100.01617.01
7.1.00.0070.04722.54
7.0.200.0000.00716.70
7.0.140.0000.07722.12
7.0.60.0100.05720.03
7.0.50.0100.08317.87
7.0.40.0200.07320.10
7.0.30.0200.07020.23
7.0.20.0130.04720.12
7.0.10.0000.06020.37
7.0.00.0130.07020.06
5.6.280.0030.07321.08
5.6.210.0100.06020.71
5.6.200.0100.08318.19
5.6.190.0030.04320.62
5.6.180.0300.07720.34
5.6.170.0270.04320.71
5.6.160.0070.05720.46
5.6.150.0170.07018.16
5.6.140.0030.04318.17
5.6.130.0100.07318.11
5.6.120.0130.08020.99
5.6.110.0000.04321.13
5.6.100.0030.08721.06
5.6.90.0070.04020.97
5.6.80.0030.04020.53
5.5.350.4270.03320.34
5.5.340.0000.06017.98
5.5.330.0030.07720.33
5.5.320.0270.03720.20
5.5.310.0270.07020.24
5.5.300.0070.04018.07
5.5.290.0070.04017.99
5.5.280.0000.05720.89
5.5.270.0100.06020.85
5.5.260.0100.08320.79
5.5.250.0070.08020.62
5.5.240.0070.07320.29
5.4.450.0170.09019.56
5.4.440.1200.06719.47
5.4.430.0870.05319.40
5.4.420.0200.04719.54
5.4.410.1270.07019.20
5.4.400.1070.07019.02
5.4.390.1170.05319.14
5.4.380.0230.05318.81
5.4.370.0500.05318.77
5.4.360.0330.04318.76
5.4.350.0090.06612.02
5.4.340.0060.03712.02
5.4.320.0050.03812.51
5.4.310.0120.04312.50
5.4.300.0060.03712.51
5.4.290.0090.03412.50
5.4.280.0060.03412.40
5.4.270.0060.04012.40
5.4.260.0130.07018.96
5.4.250.0070.05318.98
5.4.240.0200.04018.95
5.4.230.0130.05018.94
5.4.220.0070.05318.99
5.4.210.0100.05018.65
5.4.200.0070.07718.98
5.4.190.0130.03718.83
5.4.180.0100.07019.02
5.4.170.0130.04318.98
5.4.160.0170.04318.93
5.4.150.0100.05319.08
5.4.140.0070.05316.57
5.4.130.0170.05716.37
5.4.120.0100.05016.39
5.4.110.0070.05716.48
5.4.100.0130.04316.41
5.4.90.0100.04316.64
5.4.80.0130.06716.63
5.4.70.0100.05016.65
5.4.60.0070.05016.36
5.4.50.0030.05316.59
5.4.40.0030.05316.65
5.4.30.0100.06716.44
5.4.20.0100.04316.64
5.4.10.0070.05716.45
5.4.00.0070.05315.83
5.3.290.0070.04112.80
5.3.280.0100.06714.59
5.3.270.0070.05314.79
5.3.260.0170.04314.52
5.3.250.0070.05014.66
5.3.240.0070.05314.77
5.3.230.0100.04714.59
5.3.220.0100.07314.66
5.3.210.0070.05314.64
5.3.200.0070.05014.66
5.3.190.0070.05314.65
5.3.180.0070.05314.63
5.3.170.0130.05314.66
5.3.160.0100.04714.66
5.3.150.0130.04714.49
5.3.140.0030.05314.64
5.3.130.0100.05014.64
5.3.120.0130.05014.55
5.3.110.0100.05314.38
5.3.100.0070.05013.93
5.3.90.0100.04714.00
5.3.80.0100.04714.23
5.3.70.0100.05013.92
5.3.60.0070.05013.96
5.3.50.0130.06013.95
5.3.40.0030.05314.13
5.3.30.0070.06313.88
5.3.20.0170.05313.78
5.3.10.0100.04313.63
5.3.00.0100.04313.47
5.2.170.0030.05010.98
5.2.160.0100.05311.22
5.2.150.0070.04311.23
5.2.140.0100.04311.05
5.2.130.0070.04011.11
5.2.120.0100.03310.94
5.2.110.0030.04011.19
5.2.100.0030.04011.10
5.2.90.0130.03011.16
5.2.80.0030.04311.10
5.2.70.0030.04011.10
5.2.60.0000.04311.05
5.2.50.0000.05011.10
5.2.40.0100.03710.82
5.2.30.0030.05011.06
5.2.20.0070.03710.91
5.2.10.0070.03710.95
5.2.00.0100.03710.89
5.1.60.0000.0409.92
5.1.50.0070.03310.15
5.1.40.0070.04010.07
5.1.30.0030.03710.41
5.1.20.0100.04310.44
5.1.10.0030.04310.17
5.1.00.0170.0239.99
5.0.50.0170.0309.14
5.0.40.0100.0239.14
5.0.30.0100.0579.14
5.0.20.0000.0409.14
5.0.10.0030.0279.14
5.0.00.0000.0439.14
4.4.90.0000.0239.14
4.4.80.0000.0239.14
4.4.70.0070.0179.14
4.4.60.0030.0239.14
4.4.50.0030.0209.14
4.4.40.0070.0379.14
4.4.30.0070.0209.14
4.4.20.0100.0179.14
4.4.10.0030.0239.14
4.4.00.0130.0339.14
4.3.110.0030.0209.14
4.3.100.0030.0209.14
4.3.90.0100.0139.14
4.3.80.0000.0379.14
4.3.70.0070.0179.14
4.3.60.0000.0239.14
4.3.50.0030.0209.14
4.3.40.0000.0379.14
4.3.30.0000.0239.14
4.3.20.0000.0239.14
4.3.10.0000.0239.14
4.3.00.0030.0237.23

preferences:
38.27 ms | 401 KiB | 5 Q