3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function DoFoo() { print("[" . get_called_class() . "]"); } } class Bar { function DoBar() { Foo::DoFoo(); } } // Called by direct static call. Foo::DoFoo(); // Called by indirect static call, without an object context. Bar::DoBar(); // Called by indirect static call, from within an (unrelated) object context. // (But still, ultimately, a static call). $Bar = new Bar(); $Bar->DoBar();

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.5.30.0140.00417.61
8.5.20.0130.00519.36
8.5.10.0100.00916.71
8.5.00.0090.01220.00
8.4.180.0110.01119.75
8.4.170.0050.00919.73
8.4.160.0110.01119.54
8.4.150.0060.00616.89
8.4.140.0110.01117.75
8.4.130.0120.00818.10
8.4.120.0170.00320.54
8.4.110.0140.00822.42
8.4.100.0130.00717.82
8.4.90.0130.00822.38
8.4.80.0080.01017.89
8.4.70.0070.00818.74
8.4.60.0090.01018.58
8.4.50.0110.00920.40
8.4.40.0060.00318.58
8.4.30.0080.00018.71
8.4.20.0160.00320.61
8.4.10.0030.00617.76
8.3.300.0130.00820.30
8.3.290.0130.00718.37
8.3.280.0110.00820.21
8.3.270.0090.01016.83
8.3.260.0100.01216.52
8.3.250.0120.00918.82
8.3.240.0100.01016.42
8.3.230.0060.00516.70
8.3.220.0040.01117.16
8.3.210.0120.00718.62
8.3.200.0070.00216.82
8.3.190.0070.00918.81
8.3.180.0120.00618.43
8.3.170.0090.00917.25
8.3.160.0110.00720.26
8.3.150.0070.01116.57
8.3.140.0120.00617.21
8.3.130.0030.00518.54
8.3.120.0060.00318.71
8.3.110.0040.00420.94
8.3.100.0080.00324.06
8.3.90.0030.01226.77
8.3.80.0070.00316.75
8.3.70.0060.01218.55
8.3.60.0140.00718.56
8.3.50.0110.00524.43
8.3.40.0070.00720.48
8.3.30.0110.00418.59
8.3.20.0090.00921.77
8.3.10.0080.00022.15
8.3.00.0170.00322.44
8.2.300.0110.01018.16
8.2.290.0040.00520.16
8.2.280.0120.00718.61
8.2.270.0140.00417.02
8.2.260.0060.00316.80
8.2.250.0030.00516.84
8.2.240.0100.01017.08
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0100.00326.77
8.2.200.0110.00016.63
8.2.190.0060.01016.75
8.2.180.0070.00716.38
8.2.170.0070.00722.96
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0110.00726.16
8.2.120.0070.00026.16
8.2.110.0100.00022.07
8.2.100.0040.00817.91
8.2.90.0080.00017.63
8.2.80.0000.00818.61
8.2.70.0030.00617.93
8.2.60.0050.00318.09
8.2.50.0040.00419.27
8.2.40.0040.00420.90
8.2.30.0040.00419.18
8.2.20.0040.00417.98
8.2.10.0070.00019.05
8.2.00.0030.00319.23
8.1.340.0100.01417.73
8.1.330.0040.00721.95
8.1.320.0090.01016.36
8.1.310.0110.00618.32
8.1.300.0040.00417.95
8.1.290.0040.00418.88
8.1.280.0040.01125.92
8.1.270.0000.00922.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.67
8.1.230.0040.00717.83
8.1.220.0050.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00717.23
8.1.190.0050.00317.13
8.1.180.0040.00418.91
8.1.170.0030.00618.59
8.1.160.0060.00318.95
8.1.150.0040.00418.75
8.1.140.0030.00318.66
8.1.130.0050.00319.11
8.1.120.0040.00417.25
8.1.110.0050.00317.29
8.1.100.0040.00417.34
8.1.90.0000.00717.21
8.1.80.0000.00717.41
8.1.70.0000.00717.30
8.1.60.0040.00417.50
8.1.50.0000.00817.45
8.1.40.0080.00017.45
8.1.30.0030.00617.54
8.1.20.0000.00817.41
8.1.10.0040.00417.50
8.1.00.0030.00517.42
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0000.00818.37
8.0.270.0030.00316.73
8.0.260.0070.00016.83
8.0.250.0040.00416.96
8.0.240.0060.00017.04
8.0.230.0030.00316.92
8.0.220.0000.00616.93
8.0.210.0030.00316.96
8.0.200.0030.00317.01
8.0.190.0050.00216.96
8.0.180.0000.00816.93
8.0.170.0000.00816.84
8.0.160.0030.00316.75
8.0.150.0080.00016.78
8.0.140.0000.00916.86
8.0.130.0000.00513.37
8.0.120.0040.00416.75
8.0.110.0070.00016.79
8.0.100.0000.00716.91
8.0.90.0030.00616.95
8.0.80.0090.00616.85
8.0.70.0000.00716.71
8.0.60.0000.00816.77
8.0.50.0000.00716.88
8.0.30.0120.00616.96
8.0.20.0110.01016.99
8.0.10.0000.00717.01
8.0.00.0090.01316.54
7.4.330.0060.00015.55
7.4.320.0030.00316.33
7.4.300.0060.00016.58
7.4.290.0000.00716.48
7.4.280.0030.00616.49
7.4.270.0000.00716.41
7.4.260.0000.00513.23
7.4.250.0040.00416.56
7.4.240.0040.00416.58
7.4.230.0000.00716.66
7.4.220.0020.00516.69
7.4.210.0090.00816.55
7.4.200.0000.00716.71
7.4.130.0110.00716.54
7.4.120.0170.00016.64
7.4.110.0130.00316.64
7.4.100.0060.01016.60
7.4.90.0130.00516.77
7.4.80.0060.01119.39
7.4.70.0130.00616.50
7.4.60.0090.00816.61
7.4.50.0040.00416.53
7.4.40.0100.01016.29
7.4.30.0120.00416.40
7.4.20.0130.00616.29
7.4.10.0060.00916.48
7.4.00.0030.01316.45
7.3.330.0040.00416.23
7.3.320.0000.00613.17
7.3.310.0030.00616.37
7.3.300.0030.00316.25
7.3.290.0070.01116.36
7.3.260.0110.01216.30
7.3.230.0080.00816.28
7.3.210.0090.00916.38
7.3.200.0110.00516.59
7.3.190.0090.01216.29
7.3.180.0040.01416.25
7.3.170.0140.00316.23
7.3.160.0090.00616.40
7.3.150.0070.00816.51
7.3.140.0090.00616.39
7.3.130.0090.00916.54
7.3.120.0150.00616.26
7.3.110.0060.01016.31
7.3.100.0100.00616.35
7.3.90.0130.00916.24
7.3.80.0060.01116.47
7.3.70.0080.00816.33
7.3.60.0100.00716.21
7.3.50.0120.00616.29
7.3.40.0150.00316.43
7.3.30.0200.00516.28
7.3.20.0290.01016.41
7.3.10.0090.01416.33
7.3.00.0100.01316.21
7.2.330.0100.01416.66
7.2.320.0140.00716.45
7.2.310.0120.00316.77
7.2.300.0100.00716.66
7.2.290.0120.00316.59
7.2.280.0090.00616.41
7.2.270.0070.01316.78
7.2.260.0120.00916.70
7.2.250.0060.01116.85
7.2.240.0070.01016.53
7.2.230.0070.01616.60
7.2.220.0070.01016.62
7.2.210.0060.01116.61
7.2.200.0100.00716.56
7.2.190.0090.00616.63
7.2.180.0180.00016.74
7.2.170.0100.01016.68
7.2.160.0120.00616.62
7.2.150.0130.00716.71
7.2.140.0160.00816.58
7.2.130.0110.00716.61
7.2.120.0090.00916.73
7.2.110.0060.01816.73
7.2.100.0070.01016.71
7.2.90.0100.00816.61
7.2.80.0030.01516.66
7.2.70.0210.00916.58
7.2.60.0070.01016.64
7.2.50.0030.01416.67
7.2.40.0080.01716.79
7.2.30.0140.00416.70
7.2.20.0070.01016.61
7.2.10.0070.01116.79
7.2.00.0120.00616.77
7.1.330.0240.00515.66
7.1.320.0240.00515.72
7.1.310.0180.01215.32
7.1.300.0190.00815.49
7.1.290.0240.00815.61
7.1.280.0290.00415.64
7.1.270.0310.00615.56
7.1.260.0170.01315.55
7.1.250.0210.01015.54
7.1.240.0240.00615.55
7.1.230.0180.01315.54
7.1.220.0260.00315.41
7.1.210.0250.00415.49
7.1.200.0190.00915.48
7.1.190.0130.01315.20
7.1.180.0220.00015.34
7.1.170.0150.00715.47
7.1.160.0170.00615.30
7.1.150.0130.00915.38
7.1.140.0200.00615.25
7.1.130.0130.00915.44
7.1.120.0180.00315.23
7.1.110.0370.00615.59
7.1.100.0160.00615.20
7.1.90.0200.00515.44
7.1.80.0040.01915.23
7.1.70.0240.00015.48
7.1.60.0190.00415.32
7.1.50.0120.01215.24
7.1.40.0190.00315.55
7.1.30.0120.01215.41
7.1.20.0130.01015.28
7.1.10.0290.01115.18
7.1.00.0150.01015.43
7.0.330.0250.00815.23
7.0.320.0230.00415.20
7.0.310.0150.01215.29
7.0.300.0150.00915.13
7.0.290.0170.00515.19
7.0.280.0140.00915.00
7.0.270.0140.00715.11
7.0.260.0140.00714.96
7.0.250.0100.01115.28
7.0.240.0170.00715.03
7.0.230.0120.00915.03
7.0.220.0100.01215.03
7.0.210.0110.01115.24
7.0.200.0100.01014.89
7.0.190.0220.00315.06
7.0.180.0160.00315.01
7.0.170.0140.00615.02
7.0.160.0160.00515.10
7.0.150.0150.00914.95
7.0.140.0170.00615.03
7.0.130.0180.00414.88
7.0.120.0190.00314.84
7.0.110.0120.01214.96
7.0.100.0120.00915.06
7.0.90.0120.00915.08
7.0.80.0190.00714.96
7.0.70.0130.01014.88
7.0.60.0130.01314.93
7.0.50.0120.00814.96
7.0.40.0140.00915.02
7.0.30.0170.00815.14
7.0.20.0110.01415.11
7.0.10.0100.01315.03
7.0.00.0220.00415.01
5.6.400.0310.01015.77
5.6.390.0140.01416.24
5.6.380.0190.01315.98
5.6.370.0220.00615.72
5.6.360.0170.00715.72
5.6.350.0030.02015.74
5.6.340.0170.00715.79
5.6.330.0090.01615.76
5.6.320.0160.01115.88
5.6.310.0160.00815.96
5.6.300.0140.01115.82
5.6.290.0180.00715.71
5.6.280.0110.01115.80
5.6.270.0150.01515.71
5.6.260.0230.00315.78
5.6.250.0240.00415.71
5.6.240.0150.01015.68
5.6.230.0170.01015.96
5.6.220.0200.00615.79
5.6.210.0100.01715.64
5.6.200.0150.01215.80
5.6.190.0100.01415.66
5.6.180.0150.00815.71
5.6.170.0170.00815.82
5.6.160.0160.01215.95
5.6.150.0130.01715.91
5.6.140.0160.01615.81
5.6.130.0170.00915.87
5.6.120.0160.00915.88
5.6.110.0230.00615.91
5.6.100.0240.00715.91
5.6.90.0090.01815.82
5.6.80.0130.01715.83
5.6.70.0120.01215.65
5.6.60.0140.01015.72
5.6.50.0180.00815.74
5.6.40.0120.01615.71
5.6.30.0040.02115.59
5.6.20.0210.00915.55
5.6.10.0100.01315.62
5.6.00.0130.01415.70
5.5.380.0180.00916.04
5.5.370.0150.01515.90
5.5.360.0180.01316.19
5.5.350.0270.00715.78
5.5.340.0380.00015.95
5.5.330.0210.01116.09
5.5.320.0190.01015.92
5.5.310.0240.00515.84
5.5.300.0280.00415.56
5.5.290.0230.00815.86
5.5.280.0220.00915.73
5.5.270.0200.01015.66
5.5.260.0250.00715.79
5.5.250.0270.00515.71
5.5.240.0220.01415.52
5.5.230.0160.01015.71
5.5.220.0180.00915.44
5.5.210.0160.01315.65
5.5.200.0200.01415.45
5.5.190.0070.02115.89
5.5.180.0170.01415.91
5.5.170.0180.01115.62
5.5.160.0200.01115.86
5.5.150.0170.01215.82
5.5.140.0210.00815.73
5.5.130.0180.01115.71
5.5.120.0200.01015.78
5.5.110.0240.00715.78
5.5.100.0250.00315.59
5.5.90.0100.02015.59
5.5.80.0230.00415.73
5.5.70.0250.00715.72
5.5.60.0160.01315.64
5.5.50.0250.00715.91
5.5.40.0110.01615.70
5.5.30.0230.01015.73
5.5.20.0150.01515.87
5.5.10.0230.01015.59
5.5.00.0270.00315.54
5.4.450.0160.00712.54
5.4.440.0230.00312.50
5.4.430.0100.01512.59
5.4.420.0130.01012.77
5.4.410.0120.01112.56
5.4.400.0120.01212.47
5.4.390.0210.00312.71
5.4.380.0120.01212.54
5.4.370.0220.00612.45
5.4.360.0190.00512.45
5.4.350.0210.00812.54
5.4.340.0200.01012.54
5.4.330.0140.00712.38
5.4.320.0170.01012.55
5.4.310.0180.00612.49
5.4.300.0090.01112.64
5.4.290.0170.00612.51
5.4.280.0190.00712.67
5.4.270.0200.00512.52
5.4.260.0160.00812.52
5.4.250.0190.00712.35
5.4.240.0180.00712.66
5.4.230.0200.00412.54
5.4.220.0160.00712.48
5.4.210.0120.01212.50
5.4.200.0140.00912.57
5.4.190.0140.01012.58
5.4.180.0120.01312.71
5.4.170.0150.00812.38
5.4.160.0170.00612.62
5.4.150.0190.00612.70
5.4.140.0190.00412.64
5.4.130.0140.00612.57
5.4.120.0140.00912.65
5.4.110.0160.00612.85
5.4.100.0160.00612.50
5.4.90.0140.01012.35
5.4.80.0140.00812.50
5.4.70.0130.01012.55
5.4.60.0040.01612.63
5.4.50.0140.00712.68
5.4.40.0150.00712.43
5.4.30.0200.00712.56
5.4.20.0210.00412.68
5.4.10.0150.00912.70
5.4.00.0100.01712.58
5.3.290.0200.01113.16
5.3.280.0120.01212.93
5.3.270.0190.00613.09
5.3.260.0120.01513.03
5.3.250.0170.00713.07
5.3.240.0130.01313.00
5.3.230.0190.00312.96
5.3.220.0200.00412.95
5.3.210.0170.00712.91
5.3.200.0230.00213.03
5.3.190.0120.01213.08
5.3.180.0260.00013.15
5.3.170.0150.00913.11
5.3.160.0130.01013.06
5.3.150.0150.01013.15
5.3.140.0200.00913.04
5.3.130.0160.00813.26
5.3.120.0110.01513.03
5.3.110.0210.00613.08
5.3.100.0140.01013.11
5.3.90.0190.00413.04
5.3.80.0140.01112.86
5.3.70.0240.00012.97
5.3.60.0150.00813.07
5.3.50.0070.01913.24
5.3.40.0190.00313.01
5.3.30.0180.00912.98
5.3.20.0160.00912.99
5.3.10.0190.00312.88
5.3.00.0170.00712.80
5.2.170.0190.00011.96
5.2.160.0100.01011.86
5.2.150.0110.00711.91
5.2.140.0090.01411.85
5.2.130.0110.00711.78
5.2.120.0140.00511.77
5.2.110.0090.00911.80
5.2.100.0110.00711.73
5.2.90.0100.00611.89
5.2.80.0110.00611.71
5.2.70.0120.00711.71
5.2.60.0080.01411.71
5.2.50.0120.00811.83
5.2.40.0110.01211.91
5.2.30.0110.01111.84
5.2.20.0110.01211.71
5.2.10.0130.00811.71
5.2.00.0090.00911.71
5.1.60.0030.01511.71
5.1.50.0130.00311.71
5.1.40.0110.00611.71
5.1.30.0110.00611.71
5.1.20.0110.00711.71
5.1.10.0130.00311.71
5.1.00.0080.00811.71
5.0.50.0100.00511.71
5.0.40.0090.00611.71
5.0.30.0110.00411.71
5.0.20.0090.00611.71
5.0.10.0000.01311.71
5.0.00.0030.01011.71
4.4.90.0040.00411.71
4.4.80.0070.00211.71
4.4.70.0080.00411.71
4.4.60.0060.00611.71
4.4.50.0080.00311.71
4.4.40.0080.00411.71
4.4.30.0090.00011.71
4.4.20.0050.00511.71
4.4.10.0070.00411.71
4.4.00.0000.00911.71
4.3.110.0060.00311.71
4.3.100.0050.00511.71
4.3.90.0030.00611.71
4.3.80.0050.00511.71
4.3.70.0060.00311.71
4.3.60.0070.00311.71
4.3.50.0070.00411.71
4.3.40.0070.00411.71
4.3.30.0040.00511.71
4.3.20.0080.00011.71
4.3.10.0070.00411.71
4.3.00.0050.00511.71

preferences:
110.92 ms | 2800 KiB | 5 Q