3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A implements Stringable { private $value = 'a'; public function __toString() { return $this->value; } } $a = new A(); var_dump($a, (string) $a, is_string($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.60.0120.00318.18
8.3.50.0090.00616.59
8.3.40.0120.00318.66
8.3.30.0090.00618.51
8.3.20.0090.00024.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.180.0070.00725.92
8.2.170.0180.00318.83
8.2.160.0030.01022.96
8.2.150.0060.00325.66
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00026.16
8.2.110.0040.00720.93
8.2.100.0110.00017.91
8.2.90.0030.00519.17
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0080.00019.79
8.2.30.0000.00718.07
8.2.20.0030.00318.15
8.2.10.0000.00719.29
8.2.00.0040.00419.27
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.15
8.1.230.0040.00717.42
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00717.34
8.1.190.0020.00517.35
8.1.180.0040.00418.10
8.1.170.0040.00418.70
8.1.160.0000.00718.92
8.1.150.0030.00718.77
8.1.140.0020.00518.93
8.1.130.0030.00320.25
8.1.120.0000.00817.42
8.1.110.0040.00417.35
8.1.100.0080.00017.32
8.1.90.0080.00017.44
8.1.80.0040.00417.51
8.1.70.0030.00317.41
8.1.60.0030.00617.45
8.1.50.0030.00517.55
8.1.40.0000.00817.39
8.1.30.0090.00017.65
8.1.20.0030.00617.63
8.1.10.0030.00617.51
8.1.00.0070.00017.36
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0050.00318.00
8.0.260.0070.00018.48
8.0.250.0070.00016.98
8.0.240.0040.00416.91
8.0.230.0000.00716.90
8.0.220.0000.00816.80
8.0.210.0040.00416.82
8.0.200.0070.00016.91
8.0.190.0030.00316.93
8.0.180.0040.00416.84
8.0.170.0060.00316.91
8.0.160.0000.00816.77
8.0.150.0040.00416.79
8.0.140.0040.00416.90
8.0.130.0050.00013.31
8.0.120.0060.00316.72
8.0.110.0080.00016.74
8.0.100.0050.00216.93
8.0.90.0000.00716.95
8.0.80.0180.01516.90
8.0.70.0140.01516.82
8.0.60.0240.00916.84
8.0.50.0160.01216.87
8.0.30.0160.00916.79
8.0.20.0160.01716.96
8.0.10.0220.00716.98
8.0.00.0080.00917.04
7.4.330.0030.00315.55
7.4.320.0000.00616.54
7.4.300.0060.00016.52
7.4.290.0030.00316.30
7.4.280.0000.00816.50
7.4.270.0060.00016.38
7.4.260.0000.00716.44
7.4.250.0050.00216.48
7.4.240.0040.00416.36
7.4.230.0040.00416.50
7.4.220.0020.00516.51
7.4.210.0180.00016.48
7.4.200.0260.00816.54
7.4.190.0240.01016.41
7.4.180.0160.01616.55
7.4.160.0150.01716.59
7.4.150.0180.01316.56
7.4.140.0120.02116.38
7.4.130.0200.01216.43
7.4.120.0250.00416.41
7.4.110.0100.01716.29
7.4.100.0180.01216.50
7.4.90.0160.01116.57
7.4.80.0160.01216.33
7.4.70.0220.00616.31
7.4.60.0160.01316.37
7.4.50.0140.01416.32
7.4.40.0170.00916.43
7.4.30.0160.01216.42
7.4.20.0120.01216.19
7.4.10.0110.01416.48
7.4.00.0150.01416.38
7.3.330.0030.00316.28
7.3.320.0000.00713.05
7.3.310.0080.00016.08
7.3.300.0030.00316.13
7.3.290.0070.01316.17
7.3.280.0070.01316.20
7.3.270.0100.01116.22
7.3.260.0070.01816.18
7.3.250.0220.00916.22
7.3.240.0180.00816.20
7.3.230.0210.01016.27
7.3.220.0230.00716.19
7.3.210.0310.01316.24
7.3.200.0230.01016.18
7.3.190.0450.01216.15
7.3.180.0210.00916.19
7.3.170.0160.01216.22
7.3.160.0190.01316.24
7.3.150.0220.00816.20
7.3.140.0260.00616.21
7.3.130.0170.01316.30
7.3.120.0180.01116.15
7.3.110.0360.01216.01
7.3.100.0200.00916.09
7.3.90.0140.01416.36
7.3.80.0260.00916.24
7.3.70.0240.00816.26
7.3.60.0250.00716.32
7.3.50.0230.01016.30
7.3.40.0200.01216.27
7.3.30.0110.01216.33
7.3.20.0060.01616.37
7.3.10.0070.01216.29
7.3.00.0190.00616.34

preferences:
31.09 ms | 400 KiB | 5 Q