3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function factory() { return new static; } } echo get_class(Foo::factory()); //(class extends Foo)::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.0180.00318.31
8.3.50.0150.00018.18
8.3.40.0110.00418.58
8.3.30.0110.00418.36
8.3.20.0050.00223.52
8.3.10.0040.00423.53
8.3.00.0000.00919.38
8.2.180.0140.00718.54
8.2.170.0140.00722.96
8.2.160.0070.00720.57
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00417.91
8.2.120.0070.00026.35
8.2.110.0000.00919.45
8.2.100.0040.00817.70
8.2.90.0000.00917.75
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0040.00418.09
8.2.50.0050.00318.10
8.2.40.0080.00022.33
8.2.30.0000.00819.09
8.2.20.0020.00517.86
8.2.10.0080.00017.87
8.2.00.0040.00417.36
8.1.280.0140.00325.92
8.1.270.0040.00420.00
8.1.260.0050.00326.35
8.1.250.0050.00528.09
8.1.240.0060.00617.23
8.1.230.0040.00817.70
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0090.00317.22
8.1.190.0040.00416.86
8.1.180.0050.00218.10
8.1.170.0050.00220.10
8.1.160.0000.00718.82
8.1.150.0030.00320.25
8.1.140.0040.00419.36
8.1.130.0030.00318.79
8.1.120.0040.00417.24
8.1.110.0000.00817.28
8.1.100.0070.00017.31
8.1.90.0000.00817.35
8.1.80.0040.00417.28
8.1.70.0000.00717.32
8.1.60.0030.00617.43
8.1.50.0040.00417.34
8.1.40.0000.00717.45
8.1.30.0000.00817.47
8.1.20.0040.00417.55
8.1.10.0000.00717.39
8.1.00.0040.00417.49
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.41
8.0.270.0000.00717.29
8.0.260.0000.00717.25
8.0.250.0000.00716.96
8.0.240.0030.00316.96
8.0.230.0060.00316.90
8.0.220.0070.00016.73
8.0.210.0030.00316.78
8.0.200.0030.00316.77
8.0.190.0040.00416.89
8.0.180.0070.00016.71
8.0.170.0000.00716.87
8.0.160.0050.00216.84
8.0.150.0030.00616.59
8.0.140.0000.00816.64
8.0.130.0030.00313.14
8.0.120.0050.00316.79
8.0.110.0000.00716.75
8.0.100.0000.00716.63
8.0.90.0000.00716.70
8.0.80.0060.00816.74
8.0.70.0080.00016.69
8.0.60.0000.00716.71
8.0.50.0040.00416.57
8.0.30.0070.01117.19
8.0.20.0130.00817.40
8.0.10.0030.00416.66
8.0.00.0030.01316.41
7.4.330.0000.00415.55
7.4.320.0000.00716.36
7.4.300.0060.00016.52
7.4.290.0030.00516.43
7.4.280.0000.00716.41
7.4.270.0000.00716.52
7.4.260.0060.00316.46
7.4.250.0040.00416.41
7.4.240.0030.00516.45
7.4.230.0050.00216.45
7.4.220.0070.01016.52
7.4.210.0040.01116.34
7.4.200.0050.00216.50
7.4.160.0090.00816.28
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0100.00916.50
7.4.120.0130.00716.52
7.4.110.0080.00816.58
7.4.100.0070.01016.71
7.4.90.0140.00616.39
7.4.80.0130.00719.39
7.4.70.0060.01316.44
7.4.60.0060.01316.54
7.4.50.0080.00816.49
7.4.40.0090.00616.37
7.4.30.0060.01016.35
7.4.00.0020.01014.89
7.3.330.0030.00313.22
7.3.320.0030.00313.05
7.3.310.0070.00016.25
7.3.300.0070.00016.13
7.3.290.0080.00816.21
7.3.280.0080.00916.19
7.3.270.0070.01017.40
7.3.260.0130.00716.37
7.3.250.0090.00816.28
7.3.240.0120.01016.40
7.3.230.0180.00316.49
7.3.210.0080.00816.45
7.3.200.0180.00316.25
7.3.190.0130.01016.50
7.3.180.0090.00616.13
7.3.170.0060.01016.54
7.3.160.0160.00316.37
7.3.120.0040.01114.66
7.3.110.0090.00314.78
7.3.100.0070.00714.66
7.3.90.0030.01014.86
7.3.80.0070.00414.86
7.3.70.0070.00714.72
7.3.60.0080.00814.40
7.3.50.0030.01014.65
7.3.40.0030.01014.66
7.3.30.0090.00314.70
7.3.20.0070.00716.65
7.3.10.0030.00916.51
7.3.00.0030.01016.76
7.2.330.0170.00016.52
7.2.320.0040.01316.25
7.2.310.0110.00816.69
7.2.300.0000.02016.60
7.2.290.0100.00716.70
7.2.250.0150.00315.12
7.2.240.0070.01114.93
7.2.230.0030.01214.96
7.2.220.0100.00314.86
7.2.210.0080.00414.75
7.2.200.0000.01114.89
7.2.190.0090.00614.64
7.2.180.0000.01214.75
7.2.170.0120.00314.93
7.2.60.0040.00716.71
7.1.330.0070.00715.52
7.1.320.0030.00915.70
7.1.310.0030.00615.41
7.1.300.0070.00715.57
7.1.290.0030.01015.46
7.1.280.0040.01215.65
7.1.270.0000.01115.60
7.1.260.0070.00715.60
7.1.200.0030.00915.55
7.1.70.0130.00716.92
7.1.60.0000.01417.22
7.1.10.0230.08320.41
7.1.00.0070.09020.61
7.0.200.0130.01016.56
7.0.150.0200.06320.03
7.0.140.0170.08021.82
7.0.130.0270.07319.98
7.0.120.0170.07721.91
7.0.110.0370.06320.15
7.0.100.0200.06320.06
7.0.90.0130.06020.02
7.0.80.0130.07321.82
7.0.70.0270.08020.11
7.0.60.0130.06019.93
7.0.50.0170.05022.00
7.0.40.0230.05720.12
7.0.30.0330.04720.12
7.0.20.0200.06320.08
7.0.10.0270.05320.04
7.0.00.0230.04321.89

preferences:
62.31 ms | 401 KiB | 5 Q