3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo_3cc087f8ef209c33982a75e4dd830bb9 { public static function foo() { var_dump(get_called_class()); return static::bar(); } } class Foo_40a590187207cbf21fdfdda3d84ea122 extends Foo_3cc087f8ef209c33982a75e4dd830bb9 { protected static function bar() { return __CLASS__; } } echo Foo_40a590187207cbf21fdfdda3d84ea122::foo();

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.0090.00918.30
8.3.50.0120.00521.21
8.3.40.0090.00618.56
8.3.30.0000.01320.17
8.3.20.0040.00420.29
8.3.10.0000.00822.09
8.3.00.0080.00022.45
8.2.180.0140.00718.38
8.2.170.0060.00922.96
8.2.160.0110.00320.36
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00019.54
8.2.110.0040.00419.39
8.2.100.0090.00317.63
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0040.00817.50
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0050.00318.16
8.2.30.0040.00417.98
8.2.20.0030.00517.59
8.2.10.0000.00717.56
8.2.00.0040.00417.48
8.1.280.0100.00725.92
8.1.270.0040.01120.26
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.68
8.1.230.0130.00017.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0060.00320.44
8.1.160.0040.00421.93
8.1.150.0090.00018.42
8.1.140.0000.00717.36
8.1.130.0030.00317.83
8.1.120.0030.00517.30
8.1.110.0070.00017.27
8.1.100.0030.00617.29
8.1.90.0000.00717.30
8.1.80.0030.00417.24
8.1.70.0000.00717.32
8.1.60.0000.00817.56
8.1.50.0000.00817.51
8.1.40.0040.00417.49
8.1.30.0040.00417.54
8.1.20.0040.00417.54
8.1.10.0000.00717.49
8.1.00.0000.00717.36
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.32
8.0.270.0000.00817.21
8.0.260.0040.00416.73
8.0.250.0000.00717.00
8.0.240.0080.00016.87
8.0.230.0000.00716.91
8.0.220.0000.00716.81
8.0.210.0030.00316.78
8.0.200.0030.00316.88
8.0.190.0030.00316.87
8.0.180.0030.00316.72
8.0.170.0020.00516.71
8.0.160.0070.00016.75
8.0.150.0030.00316.88
8.0.140.0080.00016.84
8.0.130.0000.00613.28
8.0.120.0050.00316.65
8.0.110.0030.00616.73
8.0.100.0070.00016.87
8.0.90.0040.00416.64
8.0.80.0060.00916.77
8.0.70.0000.00716.72
8.0.60.0070.00016.88
8.0.50.0070.00016.80
8.0.30.0100.01117.17
8.0.20.0110.00817.40
8.0.10.0040.00416.78
8.0.00.0100.00916.67
7.4.330.0050.00015.00
7.4.320.0000.00616.53
7.4.300.0020.00516.61
7.4.290.0040.00416.58
7.4.280.0030.00316.40
7.4.270.0050.00316.52
7.4.260.0000.00716.59
7.4.250.0000.00716.48
7.4.240.0030.00416.47
7.4.230.0060.00016.62
7.4.220.0090.00616.39
7.4.210.0100.00616.54
7.4.200.0040.00416.54
7.4.190.0030.00316.61
7.4.160.0050.01116.30
7.4.150.0150.00617.40
7.4.140.0140.00717.86
7.4.130.0130.01016.64
7.4.120.0090.00816.50
7.4.110.0090.01116.51
7.4.100.0060.01116.35
7.4.90.0110.00816.42
7.4.80.0070.01619.39
7.4.70.0030.02016.39
7.4.60.0080.00816.39
7.4.50.0000.00616.37
7.4.40.0080.00522.77
7.4.30.0180.00016.43
7.4.00.0000.01415.01
7.3.330.0030.00313.21
7.3.320.0020.00213.19
7.3.310.0030.00516.27
7.3.300.0070.00016.23
7.3.290.0030.01116.24
7.3.280.0090.00816.21
7.3.270.0090.00917.40
7.3.260.0140.00316.47
7.3.250.0080.00816.24
7.3.240.0170.00616.22
7.3.230.0110.00516.39
7.3.210.0090.00916.49
7.3.200.0120.00819.39
7.3.190.0180.00316.41
7.3.180.0060.00916.13
7.3.170.0110.01116.46
7.3.160.0070.01016.34
7.3.120.0150.00314.50
7.3.00.0230.00316.47
7.2.330.0090.00916.45
7.2.320.0100.00716.50
7.2.310.0100.00716.41
7.2.300.0100.01416.45
7.2.290.0070.01016.46
7.2.130.0000.02616.64
7.2.120.0170.01016.71
7.2.110.0150.01016.74
7.2.100.0140.01216.84
7.2.90.0210.00816.48
7.2.80.0220.01116.57
7.2.70.0180.01316.93
7.2.60.0210.01216.81
7.2.50.0140.01816.70
7.2.40.0230.00816.70
7.2.30.0270.00316.61
7.2.20.0210.00916.61
7.2.10.0160.01216.68
7.2.00.0060.00616.92
7.1.250.0110.01415.61
7.1.240.0140.00915.82
7.1.230.0050.01715.75
7.1.220.0170.01015.74
7.1.210.0170.01015.50
7.1.200.0240.00515.77
7.1.190.0110.01515.64
7.1.180.0150.01015.57
7.1.170.0110.01415.72
7.1.160.0210.00515.29
7.1.150.0150.00815.76
7.1.140.0130.01015.41
7.1.130.0100.01015.57
7.1.120.0180.00815.54
7.1.110.0220.00415.71
7.1.100.0170.01015.66
7.1.90.0140.00715.69
7.1.80.0170.00915.51
7.1.70.0170.00916.32
7.1.60.0070.01317.41
7.1.50.0130.01216.31
7.1.40.0110.00315.49
7.1.30.0110.01615.64
7.1.20.0150.00715.46
7.1.10.0100.01315.68
7.1.00.0110.02019.06
7.0.330.0210.00615.28
7.0.320.0250.00015.42
7.0.310.0230.00315.25
7.0.300.0200.00614.96
7.0.290.0120.01314.86
7.0.280.0130.01015.24
7.0.270.0120.01215.38
7.0.260.0170.00615.30
7.0.250.0120.01215.18
7.0.240.0100.01015.25
7.0.230.0190.00615.38
7.0.220.0150.01115.39
7.0.210.0150.01215.06
7.0.200.0200.01214.67
7.0.190.0150.01115.36
7.0.180.0190.00015.35
7.0.170.0100.01515.41
7.0.160.0140.01115.47
7.0.150.0110.01415.27
7.0.140.0110.04118.54
7.0.130.0150.00915.35
7.0.120.0170.01015.50
7.0.110.0210.00615.00
7.0.100.0080.04417.51
7.0.90.0150.04117.57
7.0.80.0160.02117.77
7.0.70.0140.03517.45
7.0.60.0150.04417.61
7.0.50.0100.04517.90
7.0.40.0110.03216.73
7.0.30.0160.04316.57
7.0.20.0060.04716.80
7.0.10.0120.04316.62
7.0.00.0070.04816.68
5.6.380.0160.00814.32
5.6.370.0160.01014.25
5.6.360.0090.01414.09
5.6.350.0140.01414.46
5.6.340.0130.01714.39
5.6.330.0110.01713.91
5.6.320.0200.00614.39
5.6.310.0200.00714.48
5.6.300.0130.01314.10
5.6.290.0120.01514.14
5.6.280.0170.03517.63
5.6.270.0210.00614.54
5.6.260.0190.00914.36
5.6.250.0120.04217.32
5.6.240.0160.04117.42
5.6.230.0140.04217.35
5.6.220.0130.04217.54
5.6.210.0140.04217.32
5.6.200.0100.04317.63
5.6.190.0120.04017.61
5.6.180.0110.04617.61
5.6.170.0140.04217.64
5.6.160.0060.04117.47
5.6.150.0100.04117.46
5.6.140.0040.04117.48
5.6.130.0040.04317.67
5.6.120.0120.03817.59
5.6.110.0120.04217.51
5.6.100.0080.02517.63
5.6.90.0080.03717.73
5.6.80.0100.03817.19
5.6.70.0100.03017.30
5.6.60.0030.02817.17
5.6.50.0080.04217.29
5.6.40.0050.03517.28
5.6.30.0050.02617.31
5.6.20.0030.04317.33
5.6.10.0050.03217.15
5.6.00.0050.04117.35
5.5.380.0070.04715.77
5.5.370.0080.04515.84
5.5.360.0050.04515.79
5.5.350.0080.04515.81
5.5.340.0110.04116.09
5.5.330.0110.04316.01
5.5.320.0090.02616.05
5.5.310.0060.03916.08
5.5.300.0050.04316.09
5.5.290.0020.03016.00
5.5.280.0030.04616.07
5.5.270.0090.04016.00
5.5.260.0100.03415.99
5.5.250.0020.04715.88
5.5.240.0050.04315.73
5.5.230.0030.04815.74
5.5.220.0100.03515.68
5.5.210.0080.04115.72
5.5.200.0020.03315.66
5.5.190.0070.03515.68
5.5.180.0050.02815.70
5.5.170.0040.00411.18
5.5.160.0070.03715.70
5.5.150.0070.04215.71
5.5.140.0100.03815.71
5.5.130.0060.03815.65
5.5.120.0030.04015.70
5.5.110.0080.04215.58
5.5.100.0070.04215.62
5.5.90.0050.04115.67
5.5.80.0030.03615.62
5.5.70.0080.03415.59
5.5.60.0060.04015.63
5.5.50.0100.03615.66
5.5.40.0090.04015.63
5.5.30.0030.02815.61
5.5.20.0110.03215.61
5.5.10.0070.04015.63
5.5.00.0030.02715.58
5.4.450.0070.04215.33
5.4.440.0050.04315.24
5.4.430.0070.04215.32
5.4.420.0110.03515.28
5.4.410.0030.04215.22
5.4.400.0050.04315.02
5.4.390.0030.02915.10
5.4.380.0070.03715.06
5.4.370.0080.03815.15
5.4.360.0110.03615.03
5.4.350.0030.03015.09
5.4.340.0030.02815.04
5.4.330.0000.01011.18
5.4.320.0100.04115.11
5.4.310.0070.03815.20
5.4.300.0050.03615.18
5.4.290.0070.03715.15
5.4.280.0060.03815.15
5.4.270.0130.03515.19
5.4.260.0070.03315.12
5.4.250.0050.02515.20
5.4.240.0030.02915.10
5.4.230.0060.03815.03
5.4.220.0070.03615.10
5.4.210.0160.02815.15
5.4.200.0130.03215.19
5.4.190.0100.03515.01
5.4.180.0030.04315.13
5.4.170.0050.04015.19
5.4.160.0020.04315.02
5.4.150.0060.04115.03
5.4.140.0030.02913.80
5.4.130.0030.04013.75
5.4.120.0070.03713.88
5.4.110.0100.03713.85
5.4.100.0080.01813.79
5.4.90.0030.04113.87
5.4.80.0050.03813.86
5.4.70.0030.04113.86
5.4.60.0010.03613.80
5.4.50.0050.03913.77
5.4.40.0050.03513.81
5.4.30.0060.03913.81
5.4.20.0040.02413.79
5.4.10.0050.03213.80
5.4.00.0020.02713.49
5.3.290.0050.04712.95
5.3.280.0070.04112.92
5.3.270.0070.02512.86
5.3.260.0070.04112.90
5.3.250.0040.02912.89
5.3.240.0080.03612.94
5.3.230.0090.03812.92
5.3.220.0120.03712.89
5.3.210.0100.02812.91
5.3.200.0050.04412.94
5.3.190.0100.02012.87
5.3.180.0080.03512.83
5.3.170.0020.02912.93
5.3.160.0210.03012.86
5.3.150.0060.02612.94
5.3.140.0040.03612.90
5.3.130.0140.03312.93
5.3.120.0070.03512.88
5.3.110.0130.03312.87
5.3.100.0000.04412.62
5.3.90.0050.03712.66
5.3.80.0080.03712.65
5.3.70.0060.02412.55
5.3.60.0050.04112.56
5.3.50.0060.03912.53
5.3.40.0050.02712.52
5.3.30.0070.02912.61
5.3.20.0070.03712.50
5.3.10.0050.03612.43
5.3.00.0110.03512.40
5.2.170.0070.03111.12
5.2.160.0050.03511.15
5.2.150.0050.03111.23
5.2.140.0080.03011.19
5.2.130.0120.02711.21
5.2.120.0020.03611.17
5.2.110.0020.03511.16
5.2.100.0010.03411.18
5.2.90.0070.03011.20
5.2.80.0050.03311.16
5.2.70.0110.02511.19
5.2.60.0050.03511.16
5.2.50.0090.03011.06
5.2.40.0120.02411.12
5.2.30.0050.03411.02
5.2.20.0090.02611.08
5.2.10.0100.02211.05
5.2.00.0080.03010.93
5.1.60.0090.02310.62
5.1.50.0050.03010.66
5.1.40.0020.02810.57
5.1.30.0040.02910.83
5.1.20.0050.02710.79
5.1.10.0080.02710.54
5.1.00.0050.01810.63
5.0.50.0070.0229.90
5.0.40.0000.0279.83
5.0.30.0000.0389.79
5.0.20.0010.0259.79
5.0.10.0040.0229.79
5.0.00.0030.0349.79
4.4.90.0000.0209.79
4.4.80.0020.0239.79
4.4.70.0050.0109.79
4.4.60.0020.0239.79
4.4.50.0050.0179.79
4.4.40.0030.0279.79
4.4.30.0020.0169.79
4.4.20.0030.0199.79
4.4.10.0050.0209.79
4.4.00.0020.0289.79
4.3.110.0030.0189.79
4.3.100.0060.0169.79
4.3.90.0020.0199.79
4.3.80.0020.0299.79
4.3.70.0040.0139.79
4.3.60.0050.0179.79
4.3.50.0020.0209.79
4.3.40.0050.0259.79
4.3.30.0030.0179.79
4.3.20.0040.0189.79
4.3.10.0030.0199.79
4.3.00.0010.0189.79

preferences:
41.84 ms | 401 KiB | 5 Q