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; } } 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.60.0120.00616.50
8.3.50.0150.00418.18
8.3.40.0160.00618.87
8.3.30.0100.00718.74
8.3.20.0110.00721.92
8.3.10.0100.00723.65
8.3.00.0120.00919.26
8.2.180.0070.01318.47
8.2.170.0170.00322.96
8.2.160.0150.00620.23
8.2.150.0080.00024.18
8.2.140.0030.01624.66
8.2.130.0000.00826.16
8.2.120.0120.00326.16
8.2.110.0030.00721.03
8.2.100.0130.00317.93
8.2.90.0060.00319.35
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0000.00817.77
8.2.50.0050.00318.07
8.2.40.0030.00619.34
8.2.30.0000.00720.65
8.2.20.0080.00017.66
8.2.10.0080.00018.04
8.2.00.0000.00718.09
8.1.280.0110.00425.92
8.1.270.0150.00722.18
8.1.260.0070.01526.35
8.1.250.0090.00928.09
8.1.240.0060.00319.34
8.1.230.0040.00817.79
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0070.00417.13
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0000.00722.12
8.1.150.0050.00218.90
8.1.140.0040.00419.49
8.1.130.0030.00317.60
8.1.120.0070.00017.50
8.1.110.0040.00717.37
8.1.100.0000.00817.53
8.1.90.0000.00817.42
8.1.80.0040.00717.38
8.1.70.0080.00017.39
8.1.60.0000.00817.51
8.1.50.0090.00017.54
8.1.40.0030.00517.54
8.1.30.0030.00517.49
8.1.20.0050.00317.55
8.1.10.0000.00817.51
8.1.00.0040.00817.40
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00618.46
8.0.270.0050.00217.20
8.0.260.0040.00417.27
8.0.250.0000.00716.97
8.0.240.0000.00716.96
8.0.230.0070.00016.97
8.0.220.0030.00316.79
8.0.210.0030.00616.98
8.0.200.0060.00016.98
8.0.190.0040.00416.95
8.0.180.0040.00416.82
8.0.170.0000.00816.93
8.0.160.0040.00416.84
8.0.150.0040.00416.88
8.0.140.0000.00716.74
8.0.130.0000.00713.33
8.0.120.0040.00416.84
8.0.110.0040.00416.81
8.0.100.0000.00716.78
8.0.90.0000.00716.74
8.0.80.0160.00616.83
8.0.70.0040.00416.97
8.0.60.0050.00216.86
8.0.50.0000.00816.77
8.0.30.0140.00616.96
8.0.20.0140.00617.40
8.0.10.0040.00417.04
8.0.00.0080.01316.79
7.4.330.0030.00315.08
7.4.320.0000.00716.48
7.4.300.0000.00616.58
7.4.290.0070.00016.61
7.4.280.0030.00516.59
7.4.270.0040.00416.42
7.4.260.0000.00816.59
7.4.250.0000.00716.48
7.4.240.0070.00016.56
7.4.230.0070.00016.49
7.4.220.0100.01216.60
7.4.210.0030.01216.55
7.4.200.0000.00816.36
7.4.160.0100.00716.53
7.4.150.0110.00717.40
7.4.140.0180.00617.86
7.4.130.0070.01316.59
7.4.120.0070.01216.50
7.4.110.0050.01416.55
7.4.100.0150.00316.65
7.4.90.0120.00816.50
7.4.80.0130.00619.39
7.4.70.0030.01416.36
7.4.60.0140.00616.49
7.4.50.0050.00016.61
7.4.40.0100.01016.43
7.4.30.0090.01016.42
7.4.00.0100.00714.90
7.3.330.0030.00313.13
7.3.320.0030.00313.13
7.3.310.0080.00016.21
7.3.300.0000.00716.31
7.3.290.0100.00916.26
7.3.280.0080.01116.33
7.3.270.0080.01117.40
7.3.260.0070.01016.60
7.3.250.0170.01416.46
7.3.240.0120.00916.31
7.3.230.0030.01716.39
7.3.210.0120.00616.40
7.3.200.0030.01316.54
7.3.190.0080.01416.39
7.3.180.0060.00916.34
7.3.170.0150.00416.35
7.3.160.0090.00916.33
7.3.120.0090.00914.83
7.3.110.0090.00914.80
7.3.100.0060.01114.97
7.3.90.0100.00514.86
7.3.80.0020.01114.76
7.3.70.0100.00514.81
7.3.60.0060.00914.71
7.3.50.0060.00614.84
7.3.40.0030.00714.75
7.3.30.0020.01214.85
7.3.20.0060.00716.68
7.3.10.0020.01216.76
7.3.00.0090.00716.40
7.2.330.0060.01316.60
7.2.320.0090.01716.65
7.2.310.0070.01116.43
7.2.300.0100.00716.85
7.2.290.0030.02016.59
7.2.250.0090.01015.04
7.2.240.0120.00915.17
7.2.230.0050.01214.94
7.2.220.0110.00615.17
7.2.210.0080.00915.00
7.2.200.0080.00515.09
7.2.190.0050.01015.09
7.2.180.0120.00514.98
7.2.170.0050.00615.16
7.2.60.0060.00617.01
7.2.00.0030.01019.46
7.1.330.0110.00615.78
7.1.320.0040.00915.89
7.1.310.0080.00815.85
7.1.300.0070.00715.66
7.1.290.0090.00515.63
7.1.280.0010.00715.65
7.1.270.0070.00415.86
7.1.260.0070.00615.88
7.1.200.0000.00915.58
7.1.100.0040.00818.25
7.1.70.0000.00717.01
7.1.60.0090.01619.48
7.1.50.0110.00716.90
7.1.00.0030.07722.32
7.0.200.0320.00414.30
7.0.60.0030.07019.98
7.0.50.0100.08017.80
7.0.40.0100.04020.20
7.0.30.0230.08720.09
7.0.20.0430.05320.16
7.0.10.0070.04320.09
7.0.00.0100.08720.12
5.6.280.0000.05021.09
5.6.210.0070.08720.74
5.6.200.0070.04018.23
5.6.190.0030.05020.77
5.6.180.0370.07320.67
5.6.170.0300.07320.52
5.6.160.0000.04320.49
5.6.150.0030.07718.22
5.6.140.0100.05318.18
5.6.130.0030.08318.18
5.6.120.0100.07321.09
5.6.110.0130.04721.02
5.6.100.0100.05321.13
5.6.90.0100.05021.03
5.6.80.0130.06720.40
5.5.350.4170.03320.34
5.5.340.0030.08717.97
5.5.330.0070.09020.40
5.5.320.0130.08720.28
5.5.310.0370.06320.20
5.5.300.0200.06717.94
5.5.290.0070.07318.01
5.5.280.0070.03720.75
5.5.270.0100.06720.95
5.5.260.0130.07320.84
5.5.250.0170.06320.68
5.5.240.0370.06320.13

preferences:
43.46 ms | 400 KiB | 5 Q