3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function f() { echo get_class(); } } class B extends A {} $a = new A; $b = new B; $a->f(); $b->f();

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.0110.00816.63
8.3.50.0120.00921.92
8.3.40.0180.00018.67
8.3.30.0040.01118.59
8.3.20.0040.00420.25
8.3.10.0040.00421.90
8.3.00.0050.00219.79
8.2.180.0040.01116.63
8.2.170.0030.01722.96
8.2.160.0120.00320.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00319.33
8.2.120.0000.00826.35
8.2.110.0070.00322.24
8.2.100.0090.00317.93
8.2.90.0040.00419.26
8.2.80.0090.00017.97
8.2.70.0040.00417.50
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0050.00322.09
8.2.30.0000.00720.62
8.2.20.0040.00417.55
8.2.10.0000.00717.98
8.2.00.0050.00317.89
8.1.280.0070.00725.92
8.1.270.0160.00320.25
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0030.00623.98
8.1.230.0070.00419.10
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.13
8.1.180.0050.00218.10
8.1.170.0090.00018.65
8.1.160.0050.00220.69
8.1.150.0040.00418.81
8.1.140.0050.00319.50
8.1.130.0030.00317.61
8.1.120.0000.00717.29
8.1.110.0070.00017.22
8.1.100.0040.00417.48
8.1.90.0050.00217.45
8.1.80.0040.00417.27
8.1.70.0000.00717.27
8.1.60.0030.00617.59
8.1.50.0000.00817.52
8.1.40.0040.00417.51
8.1.30.0040.00417.54
8.1.20.0090.00017.66
8.1.10.0000.00717.61
8.1.00.0080.00017.38
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0030.00317.23
8.0.250.0000.00616.92
8.0.240.0000.00816.88
8.0.230.0000.00716.95
8.0.220.0030.00316.88
8.0.210.0030.00316.82
8.0.200.0040.00416.74
8.0.190.0000.00816.89
8.0.180.0000.00716.88
8.0.170.0040.00416.88
8.0.160.0000.00716.79
8.0.150.0070.00016.70
8.0.140.0040.00416.73
8.0.130.0050.00313.29
8.0.120.0080.00016.84
8.0.110.0000.00716.82
8.0.100.0000.00716.85
8.0.90.0050.00216.71
8.0.80.0070.01016.81
8.0.70.0070.00016.94
8.0.60.0040.00416.80
8.0.50.0040.00416.64
8.0.30.0090.01017.07
8.0.20.0120.00817.40
8.0.10.0080.00016.93
8.0.00.0130.00716.74
7.4.330.0000.00516.67
7.4.320.0000.00616.57
7.4.300.0060.00016.41
7.4.290.0040.00216.38
7.4.280.0000.00716.58
7.4.270.0030.00316.60
7.4.260.0030.00316.49
7.4.250.0040.00416.44
7.4.240.0000.00716.49
7.4.230.0000.00716.68
7.4.220.0060.00916.48
7.4.210.0150.00016.53
7.4.200.0040.00416.61
7.4.160.0060.01016.45
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0140.00516.27
7.4.120.0050.01516.46
7.4.110.0170.00016.44
7.4.100.0160.01016.49
7.4.90.0130.00316.32
7.4.80.0070.01019.39
7.4.70.0030.01916.54
7.4.60.0100.01016.50
7.4.50.0040.01116.58
7.4.40.0150.00916.43
7.4.30.0100.00716.70
7.4.00.0080.00814.73
7.3.330.0000.00513.25
7.3.320.0040.00413.16
7.3.310.0000.00816.26
7.3.300.0000.00716.15
7.3.290.0090.00716.22
7.3.280.0090.00816.19
7.3.270.0120.00617.40
7.3.260.0080.01616.34
7.3.250.0090.00916.30
7.3.240.0130.00816.23
7.3.230.0090.00916.48
7.3.210.0090.00916.33
7.3.200.0040.01316.12
7.3.190.0040.01216.36
7.3.180.0030.01316.42
7.3.170.0110.01116.32
7.3.160.0060.01416.21
7.2.330.0150.00716.63
7.2.320.0120.01016.38
7.2.310.0080.00816.61
7.2.300.0030.02016.29
7.2.290.0090.00916.69
7.2.60.0040.01216.86
7.2.00.0030.00919.20
7.1.200.0090.00315.73
7.1.100.0030.00517.85
7.1.70.0030.00616.97
7.1.60.0000.01217.18
7.1.50.0030.00716.65
7.1.00.0070.09322.28
7.0.200.0030.01216.79
7.0.60.0030.04020.07
7.0.50.0030.04317.95
7.0.40.0070.04320.10
7.0.30.0200.08320.19
7.0.20.0400.07320.06
7.0.10.0130.05320.19
7.0.00.0000.09020.19
5.6.280.0030.04321.12
5.6.210.0230.05720.70
5.6.200.0070.07718.29
5.6.190.0130.03720.64
5.6.180.0300.05020.41
5.6.170.0300.08020.55
5.6.160.0030.08720.71
5.6.150.0130.05318.12
5.6.140.0000.04318.12
5.6.130.0100.07318.24
5.6.120.0130.07720.99
5.6.110.0030.04321.11
5.6.100.0170.06321.01
5.6.90.0130.08321.00
5.6.80.0070.05020.51
5.5.350.0170.07720.41
5.5.340.0030.08318.09
5.5.330.0070.04020.30
5.5.320.0230.05020.42
5.5.310.0270.05320.34
5.5.300.0100.08018.07
5.5.290.0000.06317.98
5.5.280.0170.03020.88
5.5.270.0070.08320.77
5.5.260.0100.08020.66
5.5.250.0130.08020.50
5.5.240.0230.07320.25

preferences:
31.36 ms | 401 KiB | 5 Q