3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class {}; class_alias(get_class($a), 'A'); class B extends A{} $b = new B; print serialize($b);

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.0170.00316.63
8.3.50.0090.01218.18
8.3.40.0060.00918.90
8.3.30.0150.00618.57
8.3.20.0040.00420.33
8.3.10.0040.00423.52
8.3.00.0060.00319.38
8.2.180.0090.00625.92
8.2.170.0150.00618.86
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0160.00024.66
8.2.130.0040.00417.47
8.2.120.0040.00426.35
8.2.110.0060.00319.36
8.2.100.0080.00417.97
8.2.90.0000.00817.91
8.2.80.0000.00818.04
8.2.70.0040.00417.93
8.2.60.0030.00618.16
8.2.50.0060.00318.07
8.2.40.0000.00819.34
8.2.30.0030.00520.50
8.2.20.0030.00617.63
8.2.10.0090.00017.99
8.2.00.0000.00818.16
8.1.280.0120.00625.92
8.1.270.0060.00323.96
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0100.00023.92
8.1.230.0070.00420.85
8.1.220.0030.00717.79
8.1.210.0040.00418.85
8.1.200.0060.00317.36
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0000.00718.79
8.1.160.0080.00022.05
8.1.150.0000.00718.74
8.1.140.0040.00419.62
8.1.130.0030.00718.98
8.1.120.0040.00417.38
8.1.110.0040.00417.47
8.1.100.0050.00317.48
8.1.90.0070.00017.49
8.1.80.0030.00617.34
8.1.70.0040.00417.39
8.1.60.0030.00617.57
8.1.50.0000.00817.52
8.1.40.0060.00317.52
8.1.30.0050.00317.62
8.1.20.0060.00317.55
8.1.10.0100.00017.48
8.1.00.0000.00817.53
8.0.300.0000.00720.01
8.0.290.0050.00316.75
8.0.280.0040.00418.44
8.0.270.0000.00717.26
8.0.260.0100.00018.50
8.0.250.0040.00416.94
8.0.240.0070.00017.02
8.0.230.0090.00017.00
8.0.220.0040.00416.98
8.0.210.0070.00017.01
8.0.200.0000.00717.00
8.0.190.0000.00816.93
8.0.180.0000.00816.98
8.0.170.0040.00416.99
8.0.160.0080.00017.02
8.0.150.0040.00416.92
8.0.140.0000.00716.97
8.0.130.0030.00313.43
8.0.120.0040.00416.95
8.0.110.0000.00716.92
8.0.100.0000.00716.85
8.0.90.0000.00717.07
8.0.80.0120.00316.88
8.0.70.0030.00616.90
8.0.60.0030.00517.07
8.0.50.0000.00816.73
8.0.30.0110.00816.92
8.0.20.0120.00817.40
8.0.10.0000.00717.08
8.0.00.0130.00716.77
7.4.330.0000.00715.08
7.4.320.0000.00716.61
7.4.300.0000.00616.50
7.4.290.0050.00316.51
7.4.280.0030.00516.48
7.4.270.0070.00016.52
7.4.260.0030.00316.58
7.4.250.0000.00716.39
7.4.240.0040.00416.46
7.4.230.0030.00316.61
7.4.220.0030.01416.63
7.4.210.0100.00616.61
7.4.200.0030.00316.39
7.4.160.0120.00316.33
7.4.150.0040.01417.40
7.4.140.0170.00717.86
7.4.130.0160.00616.64
7.4.120.0120.00816.59
7.4.110.0130.00616.49
7.4.100.0060.01216.68
7.4.90.0090.00916.52
7.4.80.0090.00919.39
7.4.70.0170.00616.45
7.4.60.0120.00316.53
7.4.50.0060.00916.31
7.4.40.0000.01616.32
7.4.30.0070.01016.57
7.4.00.0040.01114.94
7.3.330.0030.00513.34
7.3.320.0030.00313.14
7.3.310.0040.00416.26
7.3.300.0070.00016.31
7.3.290.0070.00016.27
7.3.280.0090.00816.38
7.3.270.0060.01217.40
7.3.260.0030.01416.41
7.3.250.0080.01016.47
7.3.240.0130.00816.43
7.3.230.0170.00016.49
7.3.210.0110.00716.53
7.3.200.0120.00916.55
7.3.190.0180.00016.53
7.3.180.0100.00716.68
7.3.170.0130.00316.45
7.3.160.0110.00516.51
7.2.330.0080.00816.32
7.2.320.0040.01416.51
7.2.310.0130.00616.74
7.2.300.0140.00416.49
7.2.290.0190.00316.47
7.2.60.0150.00016.79
7.2.00.0030.01019.55
7.1.200.0060.00615.88
7.1.100.0030.00918.03
7.1.70.0000.00717.03
7.1.60.0040.01819.12
7.1.50.0000.01117.05
7.1.00.0000.05022.45
7.0.200.0030.00616.62
7.0.60.0070.08019.93
7.0.50.0000.05017.84
7.0.40.0070.08320.40
7.0.30.0270.07720.30
7.0.20.0370.07320.38
7.0.10.0030.09720.07
7.0.00.0100.03720.06
5.6.280.0030.03021.12
5.6.210.0070.08020.44
5.6.200.0070.07318.29
5.6.190.0030.04720.41
5.6.180.0300.07320.63
5.6.170.0230.06720.50
5.6.160.0000.04720.50
5.6.150.0100.06318.25
5.6.140.0100.04018.18
5.6.130.0000.04318.27
5.6.120.0130.07721.09
5.6.110.0070.08320.98
5.6.100.0170.07720.95
5.6.90.0070.08320.96
5.6.80.0100.07320.43
5.5.350.4070.04020.32
5.5.340.0100.07717.98
5.5.330.0100.03720.27
5.5.320.0030.08320.34
5.5.310.0230.04320.28
5.5.300.0030.05017.96
5.5.290.0200.06717.92
5.5.280.0130.07320.77
5.5.270.0030.04320.84
5.5.260.0130.07020.84
5.5.250.0130.07320.54
5.5.240.0230.03720.22

preferences:
63.49 ms | 401 KiB | 5 Q