3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class StringParameter { public function __construct($value) { assert(is_string($value)); $this->value = $value; } public function __toString() { return $this->value; } } var_dump((string) new StringParameter("foo%bar%"));

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.0100.00716.38
8.3.50.0100.01016.49
8.3.40.0070.00719.02
8.3.30.0040.01118.83
8.3.20.0040.00419.07
8.3.10.0040.00421.77
8.3.00.0040.00419.48
8.2.180.0160.00316.63
8.2.170.0150.00022.96
8.2.160.0110.00420.48
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00022.11
8.2.120.0070.00026.35
8.2.110.0060.00320.75
8.2.100.0070.00318.09
8.2.90.0040.00418.22
8.2.80.0080.00017.97
8.2.70.0040.00417.93
8.2.60.0050.00317.93
8.2.50.0000.00918.10
8.2.40.0050.00320.60
8.2.30.0080.00020.99
8.2.20.0040.00417.93
8.2.10.0040.00418.05
8.2.00.0080.00018.16
8.1.280.0110.00425.92
8.1.270.0040.00423.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.12
8.1.230.0070.00422.80
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0000.00817.35
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0090.00018.59
8.1.160.0040.00419.02
8.1.150.0000.00820.66
8.1.140.0050.00219.47
8.1.130.0030.00718.75
8.1.120.0040.00417.42
8.1.110.0080.00017.39
8.1.100.0040.00417.42
8.1.90.0030.00517.30
8.1.80.0030.00317.48
8.1.70.0030.00317.47
8.1.60.0080.00017.50
8.1.50.0040.00417.55
8.1.40.0070.00317.41
8.1.30.0060.00317.59
8.1.20.0040.00417.55
8.1.10.0000.00817.53
8.1.00.0040.00417.36
8.0.300.0050.00219.75
8.0.290.0000.00816.63
8.0.280.0030.00318.46
8.0.270.0000.00917.30
8.0.260.0030.00316.79
8.0.250.0000.00717.03
8.0.240.0000.00716.99
8.0.230.0000.00716.87
8.0.220.0030.00316.96
8.0.210.0000.00716.92
8.0.200.0000.00716.96
8.0.190.0000.00816.93
8.0.180.0040.00416.77
8.0.170.0060.00316.91
8.0.160.0000.00816.90
8.0.150.0000.00716.94
8.0.140.0050.00516.75
8.0.130.0000.00513.32
8.0.120.0050.00316.82
8.0.110.0070.00016.98
8.0.100.0070.00016.86
8.0.90.0080.00016.94
8.0.80.0070.01016.96
8.0.70.0000.00716.89
8.0.60.0050.00316.80
8.0.50.0040.00417.01
8.0.30.0090.00917.13
8.0.20.0110.00917.40
8.0.10.0040.00417.09
8.0.00.0090.00916.79
7.4.330.0030.00315.55
7.4.320.0000.00616.39
7.4.300.0030.00316.58
7.4.290.0030.00616.35
7.4.280.0000.00916.54
7.4.270.0000.00716.46
7.4.260.0000.00613.20
7.4.250.0070.00016.40
7.4.240.0040.00416.40
7.4.230.0000.00716.42
7.4.220.0060.01216.48
7.4.210.0100.00316.65
7.4.200.0030.00316.48
7.4.160.0100.00716.63
7.4.150.0080.00817.40
7.4.140.0080.01417.86
7.4.130.0160.00716.50
7.4.120.0100.00816.45
7.4.110.0160.00416.34
7.4.100.0140.00316.29
7.4.90.0090.00916.38
7.4.80.0000.01719.39
7.4.70.0100.00716.59
7.4.60.0040.01216.31
7.4.50.0100.00616.47
7.4.40.0060.00916.41
7.4.30.0100.00716.46
7.4.00.0070.00715.16
7.3.330.0070.00013.22
7.3.320.0060.00013.39
7.3.310.0000.00816.39
7.3.300.0000.00716.28
7.3.290.0060.01116.34
7.3.280.0090.00916.35
7.3.270.0090.00817.40
7.3.260.0090.01016.44
7.3.250.0110.00916.35
7.3.240.0090.00916.32
7.3.230.0170.00016.39
7.3.210.0040.01416.40
7.3.200.0060.01216.56
7.3.190.0070.01016.44
7.3.180.0100.00916.44
7.3.170.0070.01016.41
7.3.160.0050.01116.58
7.2.330.0110.00716.70
7.2.320.0060.01016.55
7.2.310.0090.00916.64
7.2.300.0140.00316.64
7.2.290.0200.00316.51
7.2.60.0070.00717.07
7.2.00.0000.01219.64
7.1.200.0060.01015.78
7.1.100.0150.00018.18
7.1.70.0040.00417.23
7.1.60.2270.01033.27
7.1.50.1630.02033.09
7.1.40.2030.01032.44
7.1.30.2700.01732.56
7.1.20.2270.01332.59
7.1.10.2600.01014.90
7.1.00.3000.01015.00
7.0.200.3000.00714.86
7.0.190.2670.01314.62
7.0.180.2400.01714.52
7.0.170.3300.01014.39
7.0.160.3270.01014.41
7.0.150.2470.02014.53
7.0.140.2170.01014.57
7.0.130.2000.01314.78
7.0.120.2330.01314.90
7.0.110.2300.01314.47
7.0.100.2200.01314.46
7.0.90.2830.01014.45
7.0.80.3000.01314.43
7.0.70.2530.01714.65
7.0.60.2600.01014.35
7.0.50.2430.01314.42
7.0.40.2300.00714.71
7.0.30.2570.01014.54
7.0.20.2900.01314.34
7.0.10.2700.01014.54
7.0.00.2970.01014.37

preferences:
45.15 ms | 400 KiB | 5 Q