3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serializable = array(); $sleep = array(); $wakeup = array(); foreach(get_declared_classes() as $class) { $reflection = new ReflectionClass($class); if($reflection->implementsInterface('Serializable')) { $serializable[] = $class; } if($reflection->hasMethod('__sleep')) { $sleep[] = $class; } if($reflection->hasMethod('__wakeup')) { $wakeup[] = $class; } if($reflection->hasMethod('__destruct')) { $wakeup[] = $class; } } var_dump($sleep); var_dump($wakeup);

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.0160.00318.71
8.3.30.0060.00918.33
8.3.20.0100.01020.16
8.3.10.0120.00323.65
8.3.00.0100.00719.25
8.2.170.0120.00422.96
8.2.160.0140.00720.44
8.2.150.0060.00324.18
8.2.140.0070.01124.66
8.2.130.0000.00826.16
8.2.120.0120.00326.16
8.2.110.0050.00520.99
8.2.100.0090.00318.04
8.2.90.0000.00819.34
8.2.80.0000.00917.97
8.2.70.0000.00917.75
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0060.00319.24
8.2.30.0070.00020.55
8.2.20.0030.00617.68
8.2.10.0000.00718.06
8.2.00.0040.00418.20
8.1.270.0040.01822.21
8.1.260.0180.00426.35
8.1.250.0090.00928.09
8.1.240.0060.00322.05
8.1.230.0070.01017.76
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0050.00517.36
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0080.00018.61
8.1.160.0070.00022.08
8.1.150.0080.00018.87
8.1.140.0080.00019.64
8.1.130.0030.00317.78
8.1.120.0080.00017.52
8.1.110.0000.01017.49
8.1.100.0030.00617.49
8.1.90.0040.00417.39
8.1.80.0000.00917.42
8.1.70.0030.00317.45
8.1.60.0050.00317.65
8.1.50.0000.00817.54
8.1.40.0030.00517.43
8.1.30.0030.00517.72
8.1.20.0000.00817.63
8.1.10.0000.00817.44
8.1.00.0030.01017.38
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0040.00418.47
8.0.270.0040.00417.16
8.0.260.0000.00717.19
8.0.250.0040.00417.02
8.0.240.0030.00316.99
8.0.230.0000.00717.04
8.0.220.0000.00716.91
8.0.210.0040.00416.85
8.0.200.0000.00716.96
8.0.190.0060.00617.07
8.0.180.0040.00417.00
8.0.170.0000.00716.80
8.0.160.0070.00016.89
8.0.150.0000.00716.96
8.0.140.0000.00816.81
8.0.130.0060.00013.35
8.0.120.0040.00416.81
8.0.110.0050.00316.89
8.0.100.0040.00316.79
8.0.90.0050.00216.98
8.0.80.0130.00316.96
8.0.70.0080.00016.76
8.0.60.0050.00216.82
8.0.50.0000.00816.95
8.0.30.0090.01217.08
8.0.20.0130.00817.40
8.0.10.0080.00017.10
8.0.00.0110.00816.65
7.4.330.0050.00015.08
7.4.320.0030.00316.65
7.4.300.0020.00516.54
7.4.290.0030.00316.52
7.4.280.0000.00816.51
7.4.270.0030.00316.55
7.4.260.0040.00416.66
7.4.250.0030.00516.57
7.4.240.0030.00416.60
7.4.230.0000.00716.61
7.4.220.0100.01416.62
7.4.210.0030.01216.59
7.4.200.0000.00716.32
7.4.160.0130.00416.32
7.4.150.0080.01217.40
7.4.140.0180.01817.86
7.4.130.0150.00916.36
7.4.120.0170.00516.54
7.4.110.0080.01116.67
7.4.100.0110.00816.72
7.4.90.0170.00316.70
7.4.80.0040.01819.39
7.4.70.0100.00816.45
7.4.60.0030.01416.61
7.4.50.0030.00316.48
7.4.40.0070.01016.65
7.4.30.0140.00416.75
7.4.00.0030.01314.84
7.3.330.0030.00313.21
7.3.320.0000.00513.10
7.3.310.0000.00716.29
7.3.300.0040.00416.28
7.3.290.0060.01116.33
7.3.280.0120.00716.29
7.3.270.0120.00817.40
7.3.260.0170.00016.52
7.3.240.0130.00916.40
7.3.230.0150.00916.39
7.3.210.0080.01116.53
7.3.200.0140.00816.57
7.3.190.0110.00816.52
7.3.180.0100.00616.37
7.3.170.0090.00916.31
7.3.160.0040.01416.45
7.2.330.0170.00316.77
7.2.320.0120.01416.54
7.2.310.0120.00616.67
7.2.300.0100.00716.61
7.2.290.0090.01216.61
7.2.60.0070.00717.01
7.2.00.0000.01619.41
7.1.200.0060.01015.95
7.1.100.0030.01318.09
7.1.70.0030.00516.95
7.1.60.0100.01419.48
7.1.50.0060.01816.90
7.1.00.0100.06722.45
7.0.200.0300.00314.42
7.0.60.0100.08020.09
7.0.50.0030.08317.68
7.0.40.0100.07320.27
7.0.30.0170.06320.33
7.0.20.0270.06720.18
7.0.10.0130.08020.19
7.0.00.0100.04020.30
5.6.280.0030.05020.92
5.6.210.0070.08020.48
5.6.200.0100.08018.26
5.6.190.0070.05720.77
5.6.180.0270.05320.39
5.6.170.0230.04020.71
5.6.160.0070.03720.54
5.6.150.0070.05018.18
5.6.140.0070.05718.08
5.6.130.0030.05018.14
5.6.120.0030.04721.04
5.6.110.0000.04320.98
5.6.100.0270.06721.13
5.6.90.0270.06321.00
5.6.80.0130.07720.38
5.5.350.4200.04020.36
5.5.340.0100.05718.04
5.5.330.0070.08720.36
5.5.320.0130.07720.28
5.5.310.0370.06720.34
5.5.300.0130.07717.94
5.5.290.0000.07317.98
5.5.280.0070.04320.98
5.5.270.0070.09320.67
5.5.260.0100.06320.71
5.5.250.0070.06720.77
5.5.240.0370.06720.25

preferences:
48.79 ms | 400 KiB | 5 Q