3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $test = 'foo'; public function __toString() { $this->test = 'bar'; return ''; } } $a = new A(); var_dump($a === ''); var_dump($a->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.4.20.0030.00619.82
8.4.10.0000.00823.72
8.3.150.0150.00320.69
8.3.140.0070.00720.49
8.3.130.0070.01418.26
8.3.120.0030.00520.90
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0120.00326.77
8.3.80.0060.00318.20
8.3.70.0120.00616.25
8.3.60.0140.00318.43
8.3.50.0130.00716.71
8.3.40.0160.00323.53
8.3.30.0210.00018.64
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.260.0040.01116.63
8.2.250.0000.00818.56
8.2.240.0060.00319.16
8.2.230.0110.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0100.00718.20
8.2.180.0140.00716.38
8.2.170.0070.00719.09
8.2.160.0040.01222.96
8.2.150.0070.00025.66
8.2.140.0000.01024.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0030.00622.25
8.2.100.0090.00319.51
8.2.90.0050.00317.63
8.2.80.0000.00818.55
8.2.70.0030.00517.80
8.2.60.0040.00417.49
8.2.50.0040.00417.63
8.2.40.0040.00421.11
8.2.30.0070.00417.74
8.2.20.0080.00817.67
8.2.10.0090.00317.51
8.2.00.0040.00817.72
8.1.310.0070.01118.27
8.1.300.0140.00417.71
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00324.05
8.1.230.0000.01218.86
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0030.00617.00
8.1.180.0090.00018.10
8.1.170.0070.00019.02
8.1.160.0100.00317.48
8.1.150.0100.00517.43
8.1.140.0120.00017.39
8.1.130.0030.00717.43
8.1.120.0080.00417.50
8.1.110.0090.00517.45
8.1.100.0130.00317.39
8.1.90.0110.00617.42
8.1.80.0110.00517.50
8.1.70.0130.00317.51
8.1.60.0140.00517.69
8.1.50.0160.00317.48
8.1.40.0130.00417.54
8.1.30.0130.00317.60
8.1.20.0080.00417.54
8.1.10.0060.01117.61
8.1.00.0090.00017.56
8.0.300.0040.00418.77
8.0.290.0070.00016.61
8.0.280.0070.00316.82
8.0.270.0110.00216.80
8.0.260.0000.01216.72
8.0.250.0030.00716.74
8.0.240.0000.01216.87
8.0.230.0080.00416.91
8.0.220.0040.00816.67
8.0.210.0070.00416.67
8.0.200.0080.00416.77
8.0.190.0110.00216.90
8.0.180.0050.00516.72
8.0.170.0060.00616.78
8.0.160.0070.00016.85
8.0.150.0030.00716.77
8.0.140.0100.00216.77
8.0.130.0070.00716.79
8.0.120.0160.00016.77
8.0.110.0130.00016.78
8.0.100.0040.01116.69
8.0.90.0060.00916.82
8.0.80.0100.00516.77
8.0.70.0120.00216.67
8.0.60.0090.00616.65
8.0.50.0110.00416.83
8.0.30.0100.00516.74
8.0.20.0090.00616.85
8.0.10.0090.00616.84

preferences:
49.48 ms | 403 KiB | 5 Q