3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function foo() { var_dump(get_class($this)); } } class B { function bar() { A::foo(); } } $b = new B; $b->bar();

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.0140.00016.50
8.3.50.0100.01016.40
8.3.40.0090.00618.76
8.3.30.0140.00018.62
8.3.20.0040.00420.22
8.3.10.0000.00821.60
8.3.00.0000.01021.78
8.2.180.0090.00916.75
8.2.170.0170.00322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00821.10
8.2.120.0000.00826.35
8.2.110.0060.00319.20
8.2.100.0060.00617.93
8.2.90.0080.00019.05
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0070.00017.80
8.2.50.0040.00418.09
8.2.40.0000.00822.14
8.2.30.0000.00719.27
8.2.20.0000.00717.66
8.2.10.0040.00417.99
8.2.00.0030.00518.03
8.1.270.0080.00022.04
8.1.260.0050.00328.09
8.1.250.0030.00628.09
8.1.240.0030.00722.50
8.1.230.0040.00717.77
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00720.68
8.1.150.0000.00718.87
8.1.140.0040.00419.38
8.1.130.0000.00717.51
8.1.120.0050.00217.35
8.1.110.0040.00417.35
8.1.100.0000.00717.28
8.1.90.0000.00717.39
8.1.80.0030.00617.27
8.1.70.0070.00017.37
8.1.60.0040.00417.57
8.1.50.0030.00617.52
8.1.40.0030.00517.53
8.1.30.0000.00917.65
8.1.20.0000.00817.68
8.1.10.0040.00417.56
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.37
8.0.270.0070.00017.14
8.0.260.0030.00317.05
8.0.250.0040.00416.86
8.0.240.0040.00416.99
8.0.230.0000.00716.91
8.0.220.0050.00316.80
8.0.210.0030.00316.89
8.0.200.0040.00416.95
8.0.190.0000.00816.88
8.0.180.0050.00316.92
8.0.170.0030.00616.86
8.0.160.0030.00316.84
8.0.150.0040.00416.86
8.0.140.0070.00316.80
8.0.130.0000.00513.35
8.0.120.0060.00316.80
8.0.110.0040.00416.77
8.0.100.0000.00716.78
8.0.90.0040.00416.76
8.0.80.0070.00716.84
8.0.70.0050.00216.68
8.0.60.0040.00416.90
8.0.50.0040.00416.73
8.0.30.0120.01017.20
8.0.20.0050.01517.40
8.0.10.0030.00516.97
8.0.00.0120.00716.99
7.4.330.0050.00016.84
7.4.320.0000.00616.38
7.4.300.0040.00416.53
7.4.290.0030.00916.47
7.4.280.0000.00716.41
7.4.270.0030.00316.59
7.4.260.0000.00716.40
7.4.250.0000.00816.34
7.4.240.0030.00316.61
7.4.230.0040.00416.61
7.4.220.0030.01616.69
7.4.210.0100.00816.53
7.4.200.0030.00316.48
7.4.160.0090.00616.26
7.4.150.0070.01017.40
7.4.140.0140.00817.86
7.4.130.0080.01116.51
7.4.120.0120.00516.57
7.4.110.0170.00616.45
7.4.100.0170.00016.64
7.4.90.0170.00016.41
7.4.80.0030.01319.39
7.4.70.0060.01016.62
7.4.60.0030.01316.44
7.4.50.0040.01216.39
7.4.40.0210.00316.28
7.4.30.0070.01016.48
7.4.00.0060.00814.84
7.3.330.0040.00413.36
7.3.320.0050.00013.23
7.3.310.0030.00316.18
7.3.300.0000.00616.32
7.3.290.0020.00516.18
7.3.280.0090.01016.36
7.3.270.0120.00617.40
7.3.260.0040.01316.30
7.3.250.0070.00916.57
7.3.240.0100.01016.47
7.3.230.0130.00316.39
7.3.210.0150.00616.45
7.3.200.0090.00619.39
7.3.190.0120.00316.56
7.3.180.0080.00916.39
7.3.170.0110.01116.58
7.3.160.0080.00816.24
7.3.120.0130.00314.75
7.3.110.0030.01314.79
7.3.100.0060.00914.57
7.3.90.0100.00714.90
7.3.80.0070.00714.77
7.3.70.0100.00314.85
7.3.60.0090.00314.88
7.3.50.0070.00714.95
7.3.40.0030.01014.85
7.3.30.0040.01114.60
7.3.20.0090.00616.56
7.3.10.0000.01016.39
7.3.00.0030.00916.23
7.2.330.0110.00816.51
7.2.320.0030.01416.29
7.2.310.0080.00816.55
7.2.300.0060.01816.66
7.2.290.0040.01216.29
7.2.250.0040.01215.07
7.2.240.0170.00314.88
7.2.230.0030.01015.05
7.2.220.0030.01215.05
7.2.210.0040.00815.02
7.2.200.0090.00614.91
7.2.190.0090.00915.00
7.2.180.0050.00514.59
7.2.170.0090.00614.99
7.2.80.0060.00616.41
7.2.60.0030.00916.86
7.2.00.0270.00319.22
7.1.330.0060.00915.84
7.1.320.0100.00315.60
7.1.310.0030.01615.79
7.1.300.0060.00315.74
7.1.290.0050.00315.68
7.1.280.0000.00815.68
7.1.270.0100.00315.30
7.1.260.0030.00715.77
7.1.200.0030.00915.75
7.1.100.0040.00917.81
7.1.70.0000.01117.09
7.1.60.0110.01419.40
7.1.50.0040.00716.84
7.1.00.0070.07022.36
7.0.200.0270.00716.68
7.0.60.0200.08021.72
7.0.50.0130.04717.90
7.0.40.0070.08720.12
7.0.30.0170.04320.25
7.0.20.0330.07320.25
7.0.10.0130.08320.10
7.0.00.0070.06020.22
5.6.280.0030.06320.84
5.6.210.0170.06020.57
5.6.200.0000.04318.19
5.6.190.0070.04720.63
5.6.180.0170.05320.63
5.6.170.0170.07320.58
5.6.160.0130.04320.46
5.6.150.0100.05318.16
5.6.140.0000.05018.15
5.6.130.0030.04318.16
5.6.120.0100.04720.97
5.6.110.0100.07720.96
5.6.100.0070.08321.05
5.6.90.0100.06020.99
5.6.80.0070.03320.41
5.5.350.0000.08320.45
5.5.340.0130.04017.98
5.5.330.0030.09020.45
5.5.320.0570.04720.36
5.5.310.0270.04720.28
5.5.300.0030.06717.98
5.5.290.0130.08018.01
5.5.280.0030.04020.89
5.5.270.0030.05020.68
5.5.260.0070.08020.87
5.5.250.0030.06720.70
5.5.240.0170.07720.13

preferences:
63.19 ms | 400 KiB | 5 Q