3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Value { public function __toString() { return "normal string"; } } $a = new Value(); echo "this is a ".$a;

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.110.0040.00420.94
8.3.100.0030.00616.75
8.3.90.0150.00016.44
8.3.80.0080.00418.31
8.3.70.0150.00018.30
8.3.60.0120.00616.75
8.3.50.0180.00622.05
8.3.40.0110.00718.57
8.3.30.0030.01018.50
8.3.20.0030.00320.21
8.3.10.0080.00021.78
8.3.00.0030.00617.38
8.2.230.0050.00322.58
8.2.220.0070.00324.06
8.2.210.0070.00026.77
8.2.200.0050.00518.41
8.2.190.0140.00618.01
8.2.180.0090.00618.04
8.2.170.0120.00622.96
8.2.160.0070.01020.48
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0090.00017.63
8.2.110.0070.00422.20
8.2.100.0070.00417.93
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0040.00421.07
8.2.30.0040.00420.48
8.2.20.0040.00417.65
8.2.10.0070.00018.05
8.2.00.0040.00418.04
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00322.37
8.1.230.0070.00417.54
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0090.00317.35
8.1.190.0080.00017.13
8.1.180.0000.00818.10
8.1.170.0000.00918.96
8.1.160.0050.00321.98
8.1.150.0050.00218.91
8.1.140.0040.00419.58
8.1.130.0000.00717.63
8.1.120.0000.00717.53
8.1.110.0040.00317.45
8.1.100.0040.00417.43
8.1.90.0040.00417.48
8.1.80.0040.00417.36
8.1.70.0000.00717.46
8.1.60.0000.00817.57
8.1.50.0040.00417.41
8.1.40.0000.01217.48
8.1.30.0070.00417.61
8.1.20.0040.00417.60
8.1.10.0070.00017.57
8.1.00.0030.00517.48
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.47
8.0.270.0030.00317.16
8.0.260.0060.00017.16
8.0.250.0000.00817.00
8.0.240.0030.00316.81
8.0.230.0000.00716.91
8.0.220.0000.00716.76
8.0.210.0050.00216.75
8.0.200.0060.00016.95
8.0.190.0080.00016.94
8.0.180.0040.00416.86
8.0.170.0040.00416.88
8.0.160.0000.00716.86
8.0.150.0050.00216.73
8.0.140.0000.00716.84
8.0.130.0050.00013.27
8.0.120.0070.00016.86
8.0.110.0040.00416.86
8.0.100.0050.00216.93
8.0.90.0000.00716.93
8.0.80.0100.00616.79
8.0.70.0070.00016.90
8.0.60.0000.00716.83
8.0.50.0040.00416.85
8.0.30.0060.01317.00
8.0.20.0100.00917.40
8.0.10.0030.00317.06
8.0.00.0110.00616.73
7.4.330.0020.00215.08
7.4.320.0000.00716.50
7.4.300.0070.00016.63
7.4.290.0060.00016.61
7.4.280.0000.00816.59
7.4.270.0000.00716.40
7.4.260.0030.00316.50
7.4.250.0070.00016.46
7.4.240.0030.00316.56
7.4.230.0000.00716.67
7.4.220.0130.01016.68
7.4.210.0080.00516.52
7.4.200.0030.00316.68
7.4.160.0060.01016.33
7.4.150.0060.01317.40
7.4.140.0190.00617.86
7.4.130.0100.00816.60
7.4.120.0080.01116.42
7.4.110.0170.00316.53
7.4.100.0070.01716.61
7.4.90.0070.01016.40
7.4.80.0090.00819.39
7.4.70.0090.01216.49
7.4.60.0150.00816.34
7.4.50.0000.00816.57
7.4.40.0090.00616.54
7.4.30.0150.00716.55
7.4.00.0090.00714.89
7.3.330.0030.00213.25
7.3.320.0000.00613.19
7.3.310.0030.00316.29
7.3.300.0070.00016.20
7.3.290.0070.00016.18
7.3.280.0060.01016.21
7.3.270.0100.00617.40
7.3.260.0070.01016.49
7.3.250.0070.01116.37
7.3.240.0100.01316.30
7.3.230.0100.00716.39
7.3.210.0100.00716.53
7.3.200.0120.00516.49
7.3.190.0060.01316.45
7.3.180.0100.00716.44
7.3.170.0110.01116.27
7.3.160.0060.01016.23
7.3.120.0030.01314.85
7.3.110.0070.01014.78
7.3.100.0070.01115.08
7.3.90.0030.00614.69
7.3.80.0030.01014.65
7.3.70.0030.00814.71
7.3.60.0030.01014.67
7.3.50.0070.01014.41
7.3.40.0100.00314.92
7.3.30.0040.00714.72
7.3.20.0090.00616.63
7.3.10.0090.00616.58
7.3.00.0060.00916.70
7.2.330.0100.00716.43
7.2.320.0130.01016.57
7.2.310.0030.01316.59
7.2.300.0170.00016.53
7.2.290.0120.00916.70
7.2.250.0100.01014.95
7.2.240.0090.00614.77
7.2.230.0070.01015.20
7.2.220.0030.00614.78
7.2.210.0030.01014.92
7.2.200.0030.01015.18
7.2.190.0070.00714.91
7.2.180.0000.01314.89
7.2.170.0000.01514.70
7.2.60.0100.00316.86
7.1.330.0040.01115.75
7.1.320.0080.00415.51
7.1.310.0070.00715.61
7.1.300.0090.00015.69
7.1.290.0120.00415.69
7.1.280.0070.00315.64
7.1.270.0060.00915.63
7.1.260.0030.01515.73
7.1.200.0090.00315.64
7.1.70.0000.00716.99
7.1.60.0030.01719.43
7.1.50.0070.01316.82
7.1.00.0000.07722.44
7.0.200.0410.00314.73
7.0.60.0030.03321.81
7.0.50.0070.03717.87
7.0.40.0000.04720.14
7.0.30.0200.04320.09
7.0.20.0330.04720.09
7.0.10.0030.04320.06
7.0.00.0030.09720.19
5.6.280.0030.03721.02
5.6.210.0130.04320.67
5.6.200.0130.06718.14
5.6.190.0030.04320.43
5.6.180.0570.07020.58
5.6.170.0330.07320.48
5.6.160.0130.07720.50
5.6.150.0200.06318.18
5.6.140.0030.07318.12
5.6.130.0030.05718.15
5.6.120.0030.08021.00
5.6.110.0070.04021.00
5.6.100.0100.07320.98
5.6.90.0030.08720.98
5.6.80.0100.07720.29
5.5.350.0200.03320.52
5.5.340.0030.06717.95
5.5.330.0000.05020.40
5.5.320.0230.04020.25
5.5.310.0270.04020.20
5.5.300.0170.07317.98
5.5.290.0000.04318.04
5.5.280.0030.04020.77
5.5.270.0170.07320.65
5.5.260.0130.07720.96
5.5.250.0100.04020.70
5.5.240.0030.07720.13
5.4.450.0330.05719.57
5.4.440.0130.04719.41
5.4.430.0270.07319.51
5.4.420.0200.03019.38
5.4.410.0170.07719.29
5.4.400.0170.06718.88
5.4.390.0270.07018.85
5.4.380.0170.04019.20
5.4.370.0230.04318.85
5.4.360.0130.07019.08
5.4.350.0270.05019.10
5.4.340.0130.06019.07
5.4.320.0300.06018.95
5.4.310.0200.05319.16
5.4.300.0300.06719.22
5.4.290.0270.06318.84
5.4.280.0200.08319.08
5.4.270.0230.06019.19
5.4.260.0230.04718.95
5.4.250.0200.07318.94
5.4.240.0270.07719.05
5.4.230.0270.05719.08
5.4.220.0230.07019.07
5.4.210.0330.06319.06
5.4.200.0230.03318.85
5.4.190.0230.03718.84
5.4.180.0200.03719.20
5.4.170.0270.03719.07
5.4.160.0300.03319.17
5.4.150.0330.06019.06
5.4.140.0230.05716.35
5.4.130.0230.04016.35
5.4.120.0070.05016.66
5.4.110.0230.04316.45
5.4.100.0230.07016.27
5.4.90.0130.08016.51

preferences:
44.14 ms | 403 KiB | 5 Q