3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('loader'); function loader($className) { echo "loading $className\n"; if ($className == 'Wakeup') eval("class Wakeup {public $b; public $e; }"); else if ($className == 'B') eval("class B { function __wakeup(){echo 'B::__wakeup';}}"); else if ($className == 'D') eval("class D { function __wakeup(){echo 'D::__wakeup';}}"); else if ($className == 'E') eval("class E extends D { function __wakeup(){echo 'E::__wakeup';}}"); echo "loaded $className: " . class_exists($className, false) . "\n"; return true; } unserialize('O:6:"Wakeup":2:{s:1:"b";O:1:"B":0:{}s:1:"e";O:1:"E":0:{}}');

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.01118.79
8.3.50.0100.00521.21
8.3.40.0150.00018.96
8.3.30.0070.00720.29
8.3.20.0000.00820.78
8.3.10.0040.00421.29
8.3.00.0040.00422.64
8.2.180.0150.00316.88
8.2.170.0160.00022.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.71
8.2.110.0050.00520.52
8.2.100.0110.00017.84
8.2.90.0000.00819.27
8.2.80.0000.00719.28
8.2.70.0040.00417.63
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0040.00420.01
8.2.30.0040.00421.10
8.2.20.0040.00417.80
8.2.10.0040.00417.63
8.2.00.0040.00417.76
8.1.280.0040.01525.92
8.1.270.0000.00723.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.44
8.1.230.0060.00620.90
8.1.220.0050.00318.77
8.1.210.0050.00318.91
8.1.200.0060.00317.23
8.1.190.0000.00717.40
8.1.180.0030.00518.10
8.1.170.0030.00518.59
8.1.160.0000.00718.76
8.1.150.0030.00618.60
8.1.140.0040.00417.46
8.1.130.0040.00417.79
8.1.120.0040.00417.34
8.1.110.0000.00817.44
8.1.100.0000.00817.41
8.1.90.0050.00217.41
8.1.80.0050.00217.38
8.1.70.0070.00017.37
8.1.60.0050.00317.44
8.1.50.0050.00317.52
8.1.40.0040.00417.43
8.1.30.0000.00817.51
8.1.20.0050.00317.45
8.1.10.0040.00417.57
8.1.00.0040.00417.47
8.0.300.0030.00519.98
8.0.290.0000.00717.04
8.0.280.0070.00018.39
8.0.270.0030.00317.27
8.0.260.0060.00018.48
8.0.250.0030.00317.02
8.0.240.0040.00417.06
8.0.230.0000.00716.91
8.0.220.0040.00416.98
8.0.210.0040.00417.00
8.0.200.0000.00617.08
8.0.190.0000.00717.02
8.0.180.0040.00417.00
8.0.170.0040.00416.95
8.0.160.0040.00417.02
8.0.150.0030.00317.05
8.0.140.0070.00017.00
8.0.130.0000.00513.56
8.0.120.0000.00716.95
8.0.110.0000.00716.96
8.0.100.0070.00016.86
8.0.90.0070.00016.82
8.0.80.0100.00716.86
8.0.70.0050.00217.04
8.0.60.0050.00316.89
8.0.50.0000.00817.04
8.0.30.0160.00817.12
8.0.20.0080.01317.40
8.0.10.0060.00317.07
8.0.00.0060.01216.80
7.4.330.0050.00016.78
7.4.320.0000.00616.54
7.4.300.0030.00316.58
7.4.290.0030.00316.54
7.4.280.0070.00016.60
7.4.270.0070.00016.64
7.4.260.0000.00513.46
7.4.250.0040.00416.48
7.4.240.0060.00116.53
7.4.230.0030.00316.36
7.4.220.0070.01316.66
7.4.210.0070.00816.57
7.4.200.0030.00316.62
7.4.190.0000.00716.77
7.4.160.0030.01316.52
7.4.150.0130.00317.40
7.4.140.0130.00517.86
7.4.130.0090.01016.60
7.4.120.0130.00516.46
7.4.110.0160.00016.25
7.4.100.0090.00916.39
7.4.90.0090.00916.69
7.4.80.0090.01019.39
7.4.70.0100.00716.39
7.4.60.0120.00616.65
7.4.50.0040.00416.41
7.4.40.0030.00922.77
7.4.30.0080.00916.34
7.4.00.0090.00915.14
7.3.330.0000.00513.49
7.3.320.0000.00513.41
7.3.310.0070.00016.36
7.3.300.0040.00416.45
7.3.290.0100.00316.48
7.3.280.0120.00616.48
7.3.270.0100.00717.40
7.3.260.0080.01018.24
7.3.250.0140.00616.48
7.3.240.0030.01516.45
7.3.230.0130.00916.43
7.3.210.0150.00616.45
7.3.200.0090.00919.39
7.3.190.0080.01216.63
7.3.180.0140.00716.31
7.3.170.0120.00916.64
7.3.160.0080.00816.52
7.3.120.0090.00714.89
7.3.110.0020.01414.81
7.3.100.0030.01114.94
7.3.90.0080.00714.77
7.3.80.0020.01414.94
7.3.70.0060.00914.82
7.3.60.0030.01014.95
7.3.50.0040.01114.82
7.3.40.0100.00214.88
7.3.30.0070.00714.88
7.3.20.0080.00616.39
7.3.10.0050.01216.57
7.3.00.0050.01216.67
7.2.330.0100.01316.39
7.2.320.0130.01016.41
7.2.310.0060.01116.80
7.2.300.0080.00816.62
7.2.290.0050.01116.37
7.2.240.0030.01014.89
7.2.230.0060.01015.10
7.2.220.0080.00715.08
7.2.210.0030.00914.97
7.2.200.0100.00614.93
7.2.190.0050.01214.95
7.2.180.0030.01215.10
7.2.170.0060.00814.91
7.2.160.0100.00515.04
7.2.150.0080.00816.92
7.2.140.0070.00816.84
7.2.130.0030.01516.79
7.2.120.0010.01016.79
7.2.110.0070.00916.81
7.2.100.0030.01116.91
7.2.90.0020.01016.86
7.2.80.0070.01016.84
7.2.70.0050.01216.90
7.2.60.0110.01016.65
7.2.50.0060.00716.85
7.2.40.0070.00816.88
7.2.30.0030.01316.85
7.2.20.0060.00917.02
7.2.10.0070.01016.92
7.2.00.0110.00516.76
7.1.330.0020.01115.79
7.1.320.0040.00815.87
7.1.310.0020.01315.80
7.1.300.0090.00715.78
7.1.290.0020.01215.74
7.1.280.0050.00715.63
7.1.270.0060.00615.62
7.1.260.0090.00615.74
7.1.250.0050.01115.85
7.1.200.0030.01015.98
7.1.70.0000.00717.20
7.1.60.0100.01419.17
7.1.50.0060.00917.14
7.1.00.0070.07022.35
7.0.200.0040.00816.79
7.0.140.0000.07721.98
7.0.60.0130.08019.86
7.0.50.0070.08317.88
7.0.40.0170.04720.23
7.0.30.0330.07720.24
7.0.20.0300.04320.05
7.0.10.0100.05720.35
7.0.00.0030.04320.30
5.6.280.0030.07721.02
5.6.210.0100.08020.71
5.6.200.0070.08318.16
5.6.190.0030.07720.66
5.6.180.0400.06320.58
5.6.170.0330.07320.55
5.6.160.0030.04320.54
5.6.150.0030.06018.14
5.6.140.0100.07718.18
5.6.130.0070.08318.23
5.6.120.0100.07321.18
5.6.110.0070.07021.15
5.6.100.0030.04021.14
5.6.90.0070.08720.88
5.6.80.0070.06320.54
5.6.70.4070.03720.52
5.5.350.0100.08320.35
5.5.340.0100.08317.99
5.5.330.0000.04320.26
5.5.320.0070.07720.24
5.5.310.0200.04020.32
5.5.300.0030.05317.94
5.5.290.0030.08018.04
5.5.280.0200.06320.77
5.5.270.0030.04020.88
5.5.260.0070.08020.96
5.5.250.0100.07720.47
5.5.240.0270.07020.28
5.4.450.0170.07319.17
5.4.440.0300.07319.37
5.4.430.0200.05019.41
5.4.420.0300.07019.20
5.4.410.0230.05019.04
5.4.400.0200.04719.07
5.4.390.0170.04718.81
5.4.380.0270.07318.95
5.4.370.0230.06019.16
5.4.360.0100.07319.15
5.4.350.0330.02319.13
5.4.340.0230.04319.31
5.4.320.0130.04319.20
5.4.310.0270.04319.20
5.4.300.0270.02719.20
5.4.290.0130.04019.16
5.4.280.0200.03319.11
5.4.270.0130.04019.14
5.4.260.0170.03719.22
5.4.250.0400.07019.09
5.4.240.0230.07719.07
5.4.230.0300.06319.18
5.4.220.0230.05319.08
5.4.210.0200.03719.08
5.4.200.0200.04318.95
5.4.190.0400.07019.09
5.4.180.0170.07719.21
5.4.170.0400.05319.31
5.4.160.0170.07319.13
5.4.150.0170.07019.20
5.4.140.0100.06716.37
5.4.130.0130.03716.34
5.4.120.0270.06316.31
5.4.110.0400.04016.58
5.4.100.0200.07016.37
5.4.90.0230.04016.56
5.4.80.0230.04316.50
5.4.70.0230.04016.29
5.4.60.0200.06316.45
5.4.50.0270.06316.45
5.4.40.0200.04016.55
5.4.30.0400.06316.32
5.4.20.0200.07016.27
5.4.10.0170.07316.19
5.4.00.0230.07015.79
5.3.290.0230.07014.61
5.3.280.0200.03314.55
5.3.270.0170.04714.64
5.3.260.0170.03714.55
5.3.250.0200.07014.64
5.3.240.0200.05014.61
5.3.230.0370.03314.54
5.3.220.0130.05714.71
5.3.210.0130.04014.60
5.3.200.0130.04714.50
5.3.190.0170.04714.65
5.3.180.0200.07314.51
5.3.170.0670.04714.71
5.3.160.0100.04314.51
5.3.150.0330.06014.68
5.3.140.0330.03014.59
5.3.130.0170.03714.50
5.3.120.0230.07314.80
5.3.110.0230.07014.64
5.3.100.0200.06313.98
5.3.90.0230.07014.09
5.3.80.0170.06714.03
5.3.70.0070.04713.95
5.3.60.0130.06314.26
5.3.50.0230.06313.89
5.3.40.0170.04014.06
5.3.30.0200.03313.94
5.3.20.0200.07313.66
5.3.10.0170.03313.59
5.3.00.0230.05713.57
5.2.170.0370.02311.23
5.2.160.0130.05711.09
5.2.150.0130.05711.27
5.2.140.0330.03711.10
5.2.130.0170.02711.05
5.2.120.0130.03711.28
5.2.110.0200.04011.11
5.2.100.0130.02711.05
5.2.90.0100.05011.04
5.2.80.0170.02711.08
5.2.70.0370.02011.08
5.2.60.0170.02711.21
5.2.50.0300.02711.20
5.2.40.0070.03710.96
5.2.30.0070.03710.98
5.2.20.0100.04310.97
5.2.10.0230.01711.05
5.2.00.0130.03010.66
5.1.60.0300.02310.01
5.1.50.0130.02710.15
5.1.40.0130.0339.89
5.1.30.0170.02010.38
5.1.20.0100.02710.61
5.1.10.0130.02310.19
5.1.00.0100.02310.18
5.0.50.0030.0238.63
5.0.40.0100.0208.63
5.0.30.0030.0308.30
5.0.20.0100.0208.28
5.0.10.0030.0238.07
5.0.00.0100.0238.05
4.4.90.0030.0207.52
4.4.80.0070.0137.52
4.4.70.0030.0177.52
4.4.60.0070.0137.52
4.4.50.0070.0137.52
4.4.40.0100.0277.52
4.4.30.0070.0137.52
4.4.20.0070.0177.52
4.4.10.0030.0177.52
4.4.00.0100.0207.52
4.3.110.0030.0177.52
4.3.100.0030.0177.52
4.3.90.0000.0207.52
4.3.80.0070.0237.52
4.3.70.0070.0137.52
4.3.60.0070.0137.52
4.3.50.0030.0177.52
4.3.40.0030.0237.52
4.3.30.0030.0137.52
4.3.20.0030.0177.52
4.3.10.0000.0177.52
4.3.00.0000.0177.52

preferences:
45.19 ms | 401 KiB | 5 Q