3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someClass { public $foo; public function __destruct() { echo "__destruct(): Exterminate! Exterminate!\n"; } } demo(); echo "Back in main.\n"; function demo() { echo "Demo starts.\n"; $s = serialize(new class { public $foo; public function __destruct() { echo "__destruct(): Exterminate! Exterminate!\n"; } }); #var_dump($s); echo "\n"; echo $s; echo "\n\n"; #$u = unserialize($s); #var_dump($u); echo "Demo's over.\n"; }

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.70.0130.00616.63
8.3.60.0130.00316.60
8.3.50.0110.00621.09
8.3.40.0110.00718.80
8.3.30.0070.00718.70
8.3.20.0070.00020.09
8.3.10.0050.00323.67
8.3.00.0050.00223.48
8.2.190.0070.00716.58
8.2.180.0030.01216.50
8.2.170.0120.00622.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.19
8.2.120.0040.00426.35
8.2.110.0090.00919.31
8.2.100.0110.00017.97
8.2.90.0050.00518.12
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0030.00617.68
8.2.50.0090.00318.09
8.2.40.0040.00422.03
8.2.30.0000.00819.30
8.2.20.0000.00817.69
8.2.10.0050.00318.12
8.2.00.0050.00318.05
8.1.280.0090.00625.92
8.1.270.0140.00322.14
8.1.260.0060.00028.09
8.1.250.0070.00028.09
8.1.240.0030.00619.48
8.1.230.0000.01420.88
8.1.220.0040.00417.77
8.1.210.0080.00018.77
8.1.200.0090.00017.22
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00618.43
8.1.160.0050.00320.74
8.1.150.0000.00718.86
8.1.140.0040.00419.43
8.1.130.0000.00717.64
8.1.120.0000.00717.46
8.1.110.0040.00417.38
8.1.100.0040.00417.45
8.1.90.0040.00417.37
8.1.80.0030.00717.37
8.1.70.0030.00317.34
8.1.60.0000.00817.54
8.1.50.0080.00017.50
8.1.40.0090.00317.46
8.1.30.0040.00417.58
8.1.20.0020.00517.49
8.1.10.0060.00317.40
8.1.00.0040.00417.45
8.0.300.0000.00720.07
8.0.290.0050.00216.71
8.0.280.0000.00718.44
8.0.270.0000.00717.17
8.0.260.0030.00317.25
8.0.250.0040.00417.04
8.0.240.0040.00417.01
8.0.230.0030.00317.02
8.0.220.0000.00716.98
8.0.210.0020.00516.79
8.0.200.0060.00017.03
8.0.190.0040.00416.86
8.0.180.0050.00316.99
8.0.170.0000.00817.04
8.0.160.0040.00416.93
8.0.150.0040.00416.91
8.0.140.0070.00016.92
8.0.130.0000.00513.34
8.0.120.0030.00616.90
8.0.110.0040.00416.99
8.0.100.0070.00017.06
8.0.90.0000.00716.94
8.0.80.0060.00916.93
8.0.70.0000.00716.88
8.0.60.0000.00716.91
8.0.50.0050.00216.89
8.0.30.0080.01017.27
8.0.20.0080.01117.40
8.0.10.0030.00517.05
8.0.00.0120.00816.73
7.4.330.0060.00015.08
7.4.320.0000.00616.54
7.4.300.0000.00716.48
7.4.290.0060.00016.45
7.4.280.0000.00716.60
7.4.270.0030.00316.54
7.4.260.0030.00516.44
7.4.250.0000.00716.39
7.4.240.0040.00416.50
7.4.230.0000.00716.44
7.4.220.0090.00916.60
7.4.210.0100.00516.51
7.4.200.0000.00716.55
7.4.160.0090.00916.48
7.4.150.0100.00717.40
7.4.140.0090.01317.86
7.4.130.0090.01516.44
7.4.120.0080.00816.60
7.4.110.0090.00816.70
7.4.100.0130.00316.27
7.4.90.0130.00616.60
7.4.80.0090.00919.39
7.4.70.0120.00316.50
7.4.60.0110.00716.51
7.4.50.0090.00616.45
7.4.40.0090.01216.41
7.4.30.0060.01516.70
7.4.00.0040.00714.63
7.3.330.0000.00513.12
7.3.320.0050.00013.25
7.3.310.0040.00416.35
7.3.300.0000.00716.25
7.3.290.0070.00016.16
7.3.280.0110.00616.31
7.3.270.0000.01617.40
7.3.260.0120.00416.50
7.3.240.0100.01016.45
7.3.230.0090.01016.39
7.3.210.0100.00716.33
7.3.200.0090.01219.39
7.3.190.0100.00716.51
7.3.180.0060.01016.46
7.3.170.0060.01216.54
7.3.160.0100.01016.43
7.2.330.0160.00016.54
7.2.320.0060.01216.61
7.2.310.0100.00716.59
7.2.300.0140.01016.45
7.2.290.0030.01316.28
7.2.60.0100.00316.80
7.2.00.0070.00719.38
7.1.200.0000.00815.59
7.1.100.0030.01018.15
7.1.70.0030.00716.89
7.1.60.0060.01919.40
7.1.50.0060.00916.57
7.1.00.0000.08022.42
7.0.200.0040.00416.85
7.0.60.0130.04019.95
7.0.50.0070.08017.88
7.0.40.0170.07320.30
7.0.30.0330.06020.07
7.0.20.0330.04720.09
7.0.10.0070.04720.13
7.0.00.0100.08320.09
5.6.280.0070.02720.87
5.6.210.0000.04320.55
5.6.200.0130.06018.13
5.6.190.0000.05320.64
5.6.180.0230.05320.55
5.6.170.0070.05320.53
5.6.160.0070.05320.43
5.6.150.0070.06018.14
5.6.140.0070.04718.28
5.6.130.0170.06718.15
5.6.120.0170.07721.00
5.6.110.0130.08021.15
5.6.100.0170.07321.12
5.6.90.0170.07721.06
5.6.80.0030.08020.34
5.5.350.3600.04720.41
5.5.340.0130.07318.05
5.5.330.0200.04720.56
5.5.320.0600.06720.35
5.5.310.0200.08020.35
5.5.300.0070.06018.05
5.5.290.0030.08317.95
5.5.280.0030.08720.93
5.5.270.0030.07720.96
5.5.260.0100.04020.86
5.5.250.0030.07020.58
5.5.240.0170.08020.26

preferences:
64.72 ms | 401 KiB | 5 Q