3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{ public $foo = ''; function __construct(){ $this->foo = "string"; } function __destruct(){ var_dump( $foo ); } } $ex = 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.40.0080.00818.87
8.3.30.0100.00718.71
8.3.20.0040.00420.13
8.3.10.0080.00421.61
8.3.00.0040.00422.14
8.2.170.0090.00622.96
8.2.160.0070.01318.91
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00721.07
8.2.120.0000.00726.35
8.2.110.0030.00621.07
8.2.100.0110.00017.97
8.2.90.0000.00919.28
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0060.00322.14
8.2.30.0060.00320.97
8.2.20.0040.00417.98
8.2.10.0040.00418.04
8.2.00.0000.00718.01
8.1.270.0040.00422.27
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00723.91
8.1.230.0070.00319.04
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0060.00317.13
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0040.00418.37
8.1.160.0000.00718.88
8.1.150.0040.00420.58
8.1.140.0000.00819.35
8.1.130.0030.00318.77
8.1.120.0040.00417.30
8.1.110.0030.00617.38
8.1.100.0030.00517.42
8.1.90.0040.00417.36
8.1.80.0040.00417.31
8.1.70.0000.00717.39
8.1.60.0050.00217.48
8.1.50.0030.00617.42
8.1.40.0000.00717.50
8.1.30.0090.00317.54
8.1.20.0040.00417.74
8.1.10.0080.00017.51
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0040.00417.22
8.0.260.0000.00716.77
8.0.250.0030.00316.98
8.0.240.0040.00416.96
8.0.230.0000.00716.82
8.0.220.0070.00016.95
8.0.210.0000.00616.90
8.0.200.0000.00616.89
8.0.190.0000.00916.91
8.0.180.0000.00716.90
8.0.170.0050.00216.90
8.0.160.0000.00816.77
8.0.150.0000.00716.89
8.0.140.0030.00316.73
8.0.130.0060.00013.40
8.0.120.0040.00416.84
8.0.110.0050.00316.85
8.0.100.0000.00716.68
8.0.90.0040.00416.83
8.0.80.0040.01416.84
8.0.70.0070.00016.89
8.0.60.0080.00016.71
8.0.50.0080.00016.83
8.0.30.0090.01016.99
8.0.20.0120.00917.40
8.0.10.0030.00517.00
8.0.00.0170.00016.68
7.4.330.0080.00015.55
7.4.320.0060.00016.45
7.4.300.0000.00616.61
7.4.290.0000.00716.51
7.4.280.0040.00416.44
7.4.270.0030.00316.59
7.4.260.0030.00316.59
7.4.250.0080.00016.40
7.4.240.0000.00716.52
7.4.230.0070.00016.39
7.4.220.0100.01016.54
7.4.210.0000.01616.59
7.4.200.0080.00016.52
7.4.160.0100.00616.47
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0120.00616.57
7.4.120.0130.01016.50
7.4.110.0100.00716.46
7.4.100.0130.00416.42
7.4.90.0040.01416.55
7.4.80.0110.00619.39
7.4.70.0100.00716.52
7.4.60.0060.01216.55
7.4.50.0080.00416.42
7.4.40.0130.00416.41
7.4.30.0080.00816.56
7.4.00.0110.00414.78
7.3.330.0000.00513.34
7.3.320.0020.00313.36
7.3.310.0040.00416.25
7.3.300.0050.00316.19
7.3.290.0100.00516.35
7.3.280.0080.00916.36
7.3.270.0160.00017.40
7.3.260.0060.01016.45
7.3.250.0110.01116.43
7.3.240.0140.00416.42
7.3.230.0040.01316.25
7.3.210.0090.00616.37
7.3.200.0100.00716.23
7.3.190.0060.01516.60
7.3.180.0060.01116.60
7.3.170.0110.00616.40
7.3.160.0120.00916.42
7.2.330.0090.01316.66
7.2.320.0060.01216.65
7.2.310.0100.00716.39
7.2.300.0110.00516.66
7.2.290.0060.01116.31
7.2.60.0060.00916.73
7.2.00.0060.00619.48
7.1.200.0000.01115.80
7.1.100.0040.00718.00
7.1.70.0030.01217.09
7.1.60.0320.00935.18
7.1.50.0340.01434.85
7.1.40.0250.01634.42
7.1.30.0260.01734.60
7.1.20.0200.02334.43
7.1.10.0070.01416.46
7.1.00.0160.00616.56
7.0.200.0070.01116.41
7.0.190.0080.01116.89
7.0.180.0100.01016.46
7.0.170.0060.01516.18
7.0.160.0110.01016.30
7.0.150.0060.01016.34
7.0.140.0080.01216.26
7.0.130.0100.01316.61
7.0.120.0030.01916.39
7.0.110.0100.01016.17
7.0.100.0030.01616.23
7.0.90.0070.01816.29
7.0.80.0060.01316.37
7.0.70.0030.01616.00
7.0.60.0000.01916.01
7.0.50.0040.01716.19
7.0.40.0060.01216.43
7.0.30.0120.00316.42
7.0.20.0060.01416.48
7.0.10.0020.01816.48
7.0.00.0130.00616.11

preferences:
35 ms | 400 KiB | 5 Q