3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public function __toString() { return 'b'; } public function foo() { } } $a = 'a'; $b = new B(); $c = $a . $b; echo $c;

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.0190.00318.18
8.3.60.0140.00016.50
8.3.50.0100.01017.44
8.3.40.0090.00618.59
8.3.30.0070.00718.60
8.3.20.0050.00318.69
8.3.10.0060.00320.28
8.3.00.0050.00319.38
8.2.180.0090.00916.50
8.2.170.0000.01922.96
8.2.160.0090.00618.79
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.12
8.2.110.0070.00320.96
8.2.100.0110.00017.54
8.2.90.0030.00619.34
8.2.80.0000.00719.34
8.2.70.0080.00017.50
8.2.60.0050.00517.93
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0000.00718.05
8.2.20.0060.00617.50
8.2.10.0000.00817.79
8.2.00.0040.00417.75
8.1.280.0070.01425.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.00922.49
8.1.230.0080.00420.93
8.1.220.0000.00817.77
8.1.210.0030.00618.83
8.1.200.0060.00617.35
8.1.190.0080.00017.51
8.1.180.0060.00318.10
8.1.170.0060.00318.90
8.1.160.0030.00518.88
8.1.150.0040.00418.54
8.1.140.0000.00717.41
8.1.130.0040.00417.81
8.1.120.0040.00717.46
8.1.110.0070.00017.43
8.1.100.0000.00717.38
8.1.90.0000.00717.36
8.1.80.0000.00717.41
8.1.70.0040.00417.33
8.1.60.0040.00417.55
8.1.50.0000.00817.35
8.1.40.0050.00217.50
8.1.30.0030.00617.52
8.1.20.0040.00417.65
8.1.10.0040.00417.60
8.1.00.0030.00517.48
8.0.300.0040.00420.03
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0040.00416.82
8.0.260.0000.00716.73
8.0.250.0050.00317.00
8.0.240.0040.00417.00
8.0.230.0030.00516.81
8.0.220.0070.00016.77
8.0.210.0050.00316.90
8.0.200.0000.00616.91
8.0.190.0000.00716.86
8.0.180.0050.00216.80
8.0.170.0030.00616.76
8.0.160.0000.00716.87
8.0.150.0070.00016.88
8.0.140.0040.00416.74
8.0.130.0030.00313.27
8.0.120.0040.00416.79
8.0.110.0000.00716.87
8.0.100.0030.00517.00
8.0.90.0080.00016.70
8.0.80.0120.00316.86
8.0.70.0000.00716.92
8.0.60.0020.00516.74
8.0.50.0000.00716.91
8.0.30.0060.01317.06
8.0.20.0070.01117.23
8.0.10.0000.00716.95
8.0.00.0100.00816.80
7.4.330.0020.00212.98
7.4.320.0000.00716.52
7.4.300.0000.00816.58
7.4.290.0030.00316.52
7.4.280.0000.00716.56
7.4.270.0040.00416.59
7.4.260.0030.00316.40
7.4.250.0040.00416.56
7.4.240.0070.00016.53
7.4.230.0000.00716.53
7.4.220.0100.01616.58
7.4.210.0160.00316.50
7.4.200.0070.00016.62
7.4.190.0040.00416.60
7.4.160.0030.01216.45
7.4.150.0030.01416.24
7.4.140.0030.01316.73
7.4.130.0030.01516.42
7.4.120.0130.01016.38
7.4.110.0130.00316.37
7.4.100.0180.00616.66
7.4.90.0150.00916.72
7.4.80.0070.01319.39
7.4.70.0160.00016.50
7.4.60.0130.01016.44
7.4.50.0000.00516.48
7.4.40.0120.00316.44
7.4.30.0060.00916.55
7.4.00.0060.00914.80
7.3.330.0000.00613.16
7.3.320.0000.00713.22
7.3.310.0030.00316.14
7.3.300.0030.00316.11
7.3.290.0110.00316.25
7.3.280.0130.00616.23
7.3.270.0100.00716.48
7.3.260.0080.00916.31
7.3.250.0150.01016.33
7.3.240.0030.01416.25
7.3.230.0030.01316.45
7.3.210.0030.01516.30
7.3.200.0100.01016.19
7.3.190.0090.01216.21
7.3.180.0060.01016.60
7.3.170.0080.00816.58
7.3.160.0080.00816.25
7.3.120.0050.01014.57
7.3.110.0000.01714.61
7.3.100.0060.00914.70
7.3.90.0070.00714.69
7.3.80.0030.00614.69
7.3.70.0070.00314.85
7.3.60.0030.01014.50
7.3.50.0060.00914.63
7.3.40.0030.01014.71
7.3.30.0080.00514.73
7.3.20.0090.00916.48
7.3.10.0090.00616.56
7.3.00.0030.01016.51
7.2.330.0070.01016.66
7.2.320.0140.01016.71
7.2.310.0040.01816.43
7.2.300.0030.01416.50
7.2.290.0070.01416.74
7.2.250.0100.01014.91
7.2.240.0100.00714.84
7.2.230.0060.01014.68
7.2.220.0090.00614.98
7.2.210.0080.00814.73
7.2.200.0030.00715.21
7.2.190.0120.00314.88
7.2.180.0090.00615.13
7.2.170.0040.01415.10
7.2.130.0080.00817.07
7.2.120.0090.00616.88
7.2.110.0070.01016.93
7.2.100.0080.00816.70
7.2.90.0120.00316.84
7.2.80.0100.00017.00
7.2.70.0000.01816.89
7.2.60.0070.01116.93
7.2.50.0040.01216.79
7.2.40.0050.00516.80
7.2.30.0060.00916.96
7.2.20.0000.01416.84
7.2.10.0090.00616.71
7.2.00.0050.01117.92
7.1.330.0070.00715.77
7.1.320.0030.01015.66
7.1.310.0040.01215.58
7.1.300.0110.00415.77
7.1.290.0080.00415.60
7.1.280.0070.01015.68
7.1.270.0090.00315.70
7.1.260.0040.01115.39
7.1.250.0110.00315.52
7.1.100.0070.00717.99
7.1.70.0030.01017.14
7.1.60.0110.01419.30
7.1.50.0130.01016.63
7.1.00.0030.03322.47
7.0.200.0040.00416.63
7.0.140.0100.06722.12
7.0.120.0000.07722.16
7.0.60.0030.07721.84
7.0.50.0100.07017.88
7.0.40.0030.07320.18
7.0.30.0430.05320.33
7.0.20.0300.07020.25
7.0.10.0000.04720.26
7.0.00.0100.03720.11
5.6.280.0100.06720.86
5.6.210.0070.05320.71
5.6.200.0030.05018.20
5.6.190.0100.07720.57
5.6.180.0170.04320.46
5.6.170.0370.07020.54
5.6.160.0070.08720.53
5.6.150.0130.07718.14
5.6.140.0100.06318.11
5.6.130.0100.06318.18
5.6.120.0030.05321.00
5.6.110.0070.07020.99
5.6.100.0000.04321.01
5.6.90.0170.07021.12
5.6.80.0130.06320.51
5.5.350.0030.08320.32
5.5.340.0100.06018.02
5.5.330.0030.04720.21
5.5.320.0270.05720.23
5.5.310.0200.05020.23
5.5.300.0070.04718.07
5.5.290.0100.08318.01
5.5.280.0100.06720.89
5.5.270.0070.06320.84
5.5.260.0030.08020.65
5.5.250.0070.08320.62
5.5.240.0200.06720.27
5.4.450.0130.06719.48
5.4.440.0030.08319.25
5.4.430.0030.04319.48
5.4.420.0100.07319.52
5.4.410.0000.04319.07
5.4.400.0070.04319.25
5.4.390.0070.08019.14
5.4.380.0070.03718.88
5.4.370.0000.05018.84
5.4.360.0100.06719.24
5.4.350.0070.06019.13
5.4.340.0030.06319.24
5.4.320.0070.05019.15
5.4.310.0070.07719.12
5.4.300.0000.05018.98
5.4.290.0000.04019.24
5.4.280.0030.05719.14
5.4.270.0070.06319.22
5.4.260.0030.03718.97
5.4.250.0000.04018.99
5.4.240.0000.04019.23
5.4.230.0100.03319.02
5.4.220.0030.03718.97
5.4.210.0070.03319.23
5.4.200.0070.03318.86
5.4.190.0070.03319.14
5.4.180.0000.04019.13
5.4.170.0000.04319.19
5.4.160.0070.03718.95
5.4.150.0130.02718.83
5.4.140.0070.03016.38
5.4.130.0030.04316.39
5.4.120.0070.03016.33
5.4.110.0030.04016.49
5.4.100.0030.03316.28
5.4.90.0070.03316.38
5.4.80.0030.03316.29
5.4.70.0030.03316.39
5.4.60.0200.02716.28
5.4.50.0000.03716.36
5.4.40.0000.03716.37
5.4.30.0030.03316.45
5.4.20.0130.02716.38
5.4.10.0000.03716.27
5.4.00.0000.03715.84
5.3.290.0000.05314.67
5.3.280.0070.03314.59
5.3.270.0030.04014.70
5.3.260.0030.03714.64
5.3.250.0030.03714.61
5.3.240.0070.03314.61
5.3.230.0070.03314.63
5.3.220.0030.03714.72
5.3.210.0030.03714.62
5.3.200.0070.03014.48
5.3.190.0170.04314.61
5.3.180.0100.03014.48
5.3.170.0000.04014.56
5.3.160.0030.03714.55
5.3.150.0030.03314.59
5.3.140.0000.04314.72
5.3.130.0100.03314.55
5.3.120.0030.03714.70
5.3.110.0030.05014.59
5.3.100.0030.04013.97
5.3.90.0030.03314.09
5.3.80.0000.03714.20
5.3.70.0030.03314.09
5.3.60.0000.04014.00
5.3.50.0070.04013.96
5.3.40.0030.03314.08
5.3.30.0070.04013.88
5.3.20.0270.03013.85
5.3.10.0030.07313.81
5.3.00.0070.04713.82
5.2.170.0030.03011.31
5.2.160.0000.03011.11
5.2.150.0000.04011.16
5.2.140.0030.03011.18
5.2.130.0000.06711.11
5.2.120.0200.02711.16
5.2.110.0100.05011.26
5.2.100.0030.06011.00
5.2.90.0030.04011.06
5.2.80.0070.06011.05
5.2.70.0000.04710.98
5.2.60.0130.02711.10
5.2.50.0030.04311.02
5.2.40.0100.03011.07
5.2.30.0030.04010.98
5.2.20.0100.05311.12
5.2.10.0070.04310.87
5.2.00.0030.06310.77
5.1.60.0100.0279.92
5.1.50.0000.0339.98
5.1.40.0030.0479.96
5.1.30.0030.06310.38
5.1.20.0000.05310.34
5.1.10.0070.05010.09
5.1.00.0100.03710.12
5.0.50.0100.0408.70
5.0.40.0100.0338.43
5.0.30.0000.0338.20
5.0.20.0000.0278.26
5.0.10.0030.0208.15
5.0.00.0030.0308.23
4.4.90.0030.0178.01
4.4.80.0000.0208.01
4.4.70.0000.0178.01
4.4.60.0000.0238.01
4.4.50.0030.0178.01
4.4.40.0000.0278.01
4.4.30.0070.0278.01
4.4.20.0000.0238.01
4.4.10.0030.0378.01
4.4.00.0030.0538.01
4.3.110.0100.0108.01
4.3.100.0030.0178.01
4.3.90.0030.0208.01
4.3.80.0030.0238.01
4.3.70.0000.0338.01
4.3.60.0030.0238.01
4.3.50.0000.0378.01
4.3.40.0030.0338.01
4.3.30.0030.0178.01
4.3.20.0000.0238.01
4.3.10.0000.0438.01
4.3.00.0000.0178.01

preferences:
55.04 ms | 401 KiB | 5 Q