3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { var_dump('created!'); } } class Bar { public function getFoo() { static $foo; return $foo ?? ($foo = new Foo); } }

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.0040.01416.13
8.3.50.0110.00418.30
8.3.40.0070.00718.45
8.3.30.0090.00618.64
8.3.20.0040.00420.21
8.3.10.0000.00723.36
8.3.00.0090.00019.15
8.2.180.0100.01018.04
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00417.38
8.2.120.0040.00426.35
8.2.110.0060.00320.99
8.2.100.0080.00317.60
8.2.90.0090.00018.09
8.2.80.0030.00617.97
8.2.70.0030.00617.38
8.2.60.0090.00017.68
8.2.50.0060.00318.10
8.2.40.0030.00520.66
8.2.30.0040.00420.61
8.2.20.0050.00317.47
8.2.10.0000.00718.04
8.2.00.0070.00017.88
8.1.280.0160.00025.92
8.1.270.0000.00823.82
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0040.00722.67
8.1.220.0030.00517.74
8.1.210.0080.00020.13
8.1.200.0060.00317.10
8.1.190.0040.00416.98
8.1.180.0040.00418.10
8.1.170.0030.00518.50
8.1.160.0040.00422.02
8.1.150.0050.00318.73
8.1.140.0040.00419.45
8.1.130.0000.00717.60
8.1.120.0030.00517.36
8.1.110.0000.00717.32
8.1.100.0030.00617.34
8.1.90.0040.00417.29
8.1.80.0050.00217.28
8.1.70.0000.00817.12
8.1.60.0080.00017.41
8.1.50.0040.00417.38
8.1.40.0060.00617.40
8.1.30.0090.00017.45
8.1.20.0050.00217.48
8.1.10.0060.00317.35
8.1.00.0100.00017.29
8.0.300.0030.00319.94
8.0.290.0070.00016.63
8.0.280.0000.00718.26
8.0.270.0000.00717.03
8.0.260.0000.00716.99
8.0.250.0000.00716.79
8.0.240.0040.00416.80
8.0.230.0050.00216.75
8.0.220.0000.00716.65
8.0.210.0080.00016.71
8.0.200.0000.00616.74
8.0.190.0080.00016.83
8.0.180.0000.00716.66
8.0.170.0050.00316.78
8.0.160.0000.00716.79
8.0.150.0000.00816.68
8.0.140.0030.00316.59
8.0.130.0000.00713.20
8.0.120.0040.00416.69
8.0.110.0040.00416.78
8.0.100.0040.00416.65
8.0.90.0040.00416.77
8.0.80.0090.00616.67
8.0.70.0080.00016.74
8.0.60.0070.00016.77
8.0.50.0040.00416.82
8.0.30.0130.00916.92
8.0.20.0110.00717.40
8.0.10.0000.00816.74
8.0.00.0090.00816.55
7.4.330.0000.00516.70
7.4.320.0000.00616.32
7.4.300.0000.00616.38
7.4.290.0040.00416.37
7.4.280.0060.00316.34
7.4.270.0000.00716.36
7.4.260.0000.00716.40
7.4.250.0040.00416.25
7.4.240.0030.00416.45
7.4.230.0000.00716.29
7.4.220.0140.00716.53
7.4.210.0080.00716.40
7.4.200.0030.00316.48
7.4.160.0060.00916.32
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0100.01016.30
7.4.120.0090.00916.30
7.4.110.0110.00816.45
7.4.100.0120.00616.34
7.4.90.0050.01116.14
7.4.80.0070.01419.39
7.4.70.0110.01116.12
7.4.60.0090.00616.42
7.4.50.0090.00616.30
7.4.40.0130.00316.36
7.4.30.0110.00716.38
7.4.00.0070.00714.83
7.3.330.0050.00013.01
7.3.320.0000.00513.14
7.3.310.0030.00316.27
7.3.300.0000.00716.21
7.3.290.0000.00716.21
7.3.280.0100.00616.18
7.3.270.0130.01017.40
7.3.260.0120.00316.18
7.3.250.0110.01016.28
7.3.240.0110.00716.21
7.3.230.0100.01416.39
7.3.210.0110.00716.22
7.3.200.0100.00616.21
7.3.190.0130.00416.19
7.3.180.0130.01016.36
7.3.170.0070.01416.43
7.3.160.0130.00316.21
7.2.330.0040.01216.58
7.2.320.0130.00616.59
7.2.310.0090.00916.54
7.2.300.0140.00716.36
7.2.290.0030.01316.41
7.2.60.0030.01316.59
7.2.00.0030.00919.13
7.1.200.0100.00315.59
7.1.100.0060.01317.96
7.1.70.0000.00716.95
7.1.60.0180.00719.48
7.1.50.0160.00616.89
7.1.00.0070.07322.40
7.0.200.0590.00714.47
7.0.60.0030.07019.82
7.0.50.0130.07717.84
7.0.40.0100.08320.11
7.0.30.0230.08320.24
7.0.20.0300.06020.19
7.0.10.0100.03720.06
7.0.00.0030.05720.26
5.6.280.0000.07020.81
5.6.210.0070.07320.48
5.6.200.0100.08318.20
5.6.190.0070.08020.64
5.6.180.0230.04720.46
5.6.170.0470.07020.71
5.6.160.0170.03320.52
5.6.150.0030.06318.30
5.6.140.0000.06318.23
5.6.130.0070.05018.11
5.6.120.0030.04721.02
5.6.110.0170.07720.98
5.6.100.0000.05021.14
5.6.90.0030.07721.13
5.6.80.0030.08020.51
5.5.350.0070.07020.41
5.5.340.0070.07318.09
5.5.330.0000.04320.31
5.5.320.0200.04020.29
5.5.310.0330.06720.37
5.5.300.0070.03718.09
5.5.290.0000.04317.93
5.5.280.0030.04720.86
5.5.270.0100.06720.68
5.5.260.0100.08020.80
5.5.250.0000.08320.69
5.5.240.0170.04320.27

preferences:
59.56 ms | 401 KiB | 5 Q