3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static function staticMethod() { return 'MyClass::staticMethod called'; } } $className = 'MyClass'; $staticMethodName = 'staticMethod'; var_dump($className::$staticMethodName()); var_dump($className::staticMethod());

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.130.0050.00318.52
8.3.120.0110.00718.71
8.3.110.0080.00020.94
8.3.100.0030.00624.06
8.3.90.0070.00026.77
8.3.80.0060.00316.38
8.3.70.0110.00716.58
8.3.60.0070.01418.55
8.3.50.0120.00722.04
8.3.40.0070.00718.43
8.3.30.0000.01418.83
8.3.20.0040.00420.39
8.3.10.0070.00021.78
8.3.00.0060.00319.13
8.2.250.0170.00016.73
8.2.240.0130.00616.89
8.2.230.0120.00322.58
8.2.220.0120.00437.54
8.2.210.0070.01126.77
8.2.200.0070.00318.54
8.2.190.0170.00016.63
8.2.180.0070.00725.92
8.2.170.0090.00619.01
8.2.160.0030.01022.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00720.80
8.2.110.0030.00619.39
8.2.100.0040.00817.78
8.2.90.0000.00822.20
8.2.80.0030.00619.32
8.2.70.0000.00918.03
8.2.60.0080.00017.91
8.2.50.0040.00418.10
8.2.40.0050.00219.39
8.2.30.0000.00720.47
8.2.20.0040.00417.61
8.2.10.0000.00717.92
8.2.00.0030.00717.48
8.1.300.0150.00419.91
8.1.290.0050.00518.88
8.1.280.0110.01125.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0110.00017.35
8.1.230.0080.00320.74
8.1.220.0040.00417.74
8.1.210.0050.00318.88
8.1.200.0060.00317.35
8.1.190.0000.00917.10
8.1.180.0090.00018.10
8.1.170.0000.00818.30
8.1.160.0040.00421.89
8.1.150.0040.00418.52
8.1.140.0070.00017.36
8.1.130.0000.00717.86
8.1.120.0070.00017.40
8.1.110.0000.00717.35
8.1.100.0040.00417.37
8.1.90.0000.00717.28
8.1.80.0040.00417.39
8.1.70.0030.00317.36
8.1.60.0050.00317.60
8.1.50.0040.00417.41
8.1.40.0040.00417.52
8.1.30.0050.00317.63
8.1.20.0000.00817.53
8.1.10.0000.00817.43
8.1.00.0080.00017.51
8.0.300.0070.00019.84
8.0.290.0050.00516.63
8.0.280.0040.00418.30
8.0.270.0030.00516.66
8.0.260.0060.00017.14
8.0.250.0000.00716.91
8.0.240.0000.00616.79
8.0.230.0030.00316.90
8.0.220.0000.00816.84
8.0.210.0000.00716.69
8.0.200.0080.00016.85
8.0.190.0040.00416.79
8.0.180.0000.00716.82
8.0.170.0000.00816.74
8.0.160.0000.00816.76
8.0.150.0030.00316.78
8.0.140.0030.00416.62
8.0.130.0000.00613.25
8.0.120.0030.00516.76
8.0.110.0040.00416.86
8.0.100.0070.00016.71
8.0.90.0030.00516.64
8.0.80.0000.01516.89
8.0.70.0050.00216.85
8.0.60.0030.00516.83
8.0.50.0070.00016.88
8.0.30.0120.00916.93
8.0.20.0080.01017.43
8.0.10.0170.00016.86
8.0.00.0120.00816.86
7.4.330.0180.00716.27
7.4.320.0030.00316.34
7.4.300.0060.00016.59
7.4.290.0000.00716.53
7.4.280.0070.00016.52
7.4.270.0030.00516.57
7.4.260.0070.00016.57
7.4.250.0080.00016.47
7.4.240.0050.00216.55
7.4.230.0030.00316.70
7.4.220.0130.00416.59
7.4.210.0080.00716.49
7.4.200.0070.00016.62
7.4.190.0000.00716.75
7.4.160.0040.01216.31
7.4.150.0030.01517.40
7.4.140.0110.00917.37
7.4.130.0100.00916.46
7.4.120.0080.00916.44
7.4.110.0110.00616.36
7.4.100.0100.00816.45
7.4.90.0070.01016.45
7.4.80.0110.00817.86
7.4.70.0090.00816.58
7.4.60.0090.00916.56
7.4.50.0060.00616.41
7.4.40.0070.00819.54
7.4.30.0090.00916.51
7.4.20.0110.00616.39
7.4.10.0120.00715.60
7.4.00.0050.01115.31
7.3.330.0030.00313.13
7.3.320.0060.00013.24
7.3.310.0000.00716.19
7.3.300.0050.00216.25
7.3.290.0060.01316.34
7.3.280.0120.00716.27
7.3.270.0060.00917.40
7.3.260.0120.00716.28
7.3.250.0150.00816.34
7.3.240.0090.00916.21
7.3.230.0090.00916.41
7.3.220.0100.00716.34
7.3.210.0060.01116.28
7.3.200.0090.00917.96
7.3.190.0080.01116.34
7.3.180.0110.00616.42
7.3.170.0080.01016.38
7.3.160.0130.00516.29
7.3.150.0120.00416.21
7.3.140.0040.01416.55
7.3.130.0080.01015.54
7.3.120.0090.00615.19
7.3.110.0080.01015.53
7.3.100.0140.00215.59
7.3.90.0050.01115.61
7.3.80.0060.00715.57
7.3.70.0080.01015.51
7.3.60.0070.00615.21
7.3.50.0140.01215.28
7.3.40.0090.00615.18
7.3.30.0110.00615.16
7.3.20.0070.00615.84
7.3.10.0240.00915.56
7.3.00.0200.00715.54
7.2.340.0130.00616.20
7.2.330.0070.01216.50
7.2.320.0110.01116.58
7.2.310.0110.00716.30
7.2.300.0100.00816.42
7.2.290.0100.01016.47
7.2.280.0080.01216.42
7.2.270.0110.01116.45
7.2.260.0090.01015.80
7.2.250.0110.00315.65
7.2.240.0120.00715.82
7.2.230.0060.01215.50
7.2.220.0050.01215.48
7.2.210.0070.00715.65
7.2.200.0130.00315.53
7.2.190.0080.00615.48
7.2.180.0080.00815.47
7.2.170.0090.00915.40
7.2.160.0080.00615.34
7.2.150.0100.00716.05
7.2.140.0130.00716.01
7.2.130.0170.00515.73
7.2.120.0220.00715.79
7.2.110.0190.00515.80
7.2.100.0210.00615.76
7.2.90.0290.00715.76
7.2.80.0340.00815.68
7.2.70.0160.00615.75
7.2.60.0230.00815.92
7.2.50.0210.00915.85
7.2.40.0210.00715.70
7.2.30.0180.00615.86
7.2.20.0180.00916.30
7.2.10.0180.01116.14
7.2.00.0170.00816.69
7.1.330.0050.01015.72
7.1.320.0210.00415.54
7.1.310.0110.00315.53
7.1.300.0130.00815.09
7.1.290.0070.00814.98
7.1.280.0080.00915.06
7.1.270.0070.00714.93
7.1.260.0130.00314.91
7.1.250.0200.00414.60
7.1.240.0190.01114.66
7.1.230.0240.00814.68
7.1.220.0230.00714.61
7.1.210.0260.01014.72
7.1.200.0170.00914.83
7.1.190.0200.00914.71
7.1.180.0410.00314.63
7.1.170.0260.00814.60
7.1.160.0180.00814.56
7.1.150.0200.00614.65
7.1.140.0230.00715.13
7.1.130.0200.00815.13
7.1.120.0190.00715.18
7.1.110.0240.01315.07
7.1.100.0170.01115.46
7.1.90.0200.00914.99
7.1.80.0220.00814.99
7.1.70.0240.00915.24
7.1.60.0120.01118.58
7.1.50.0120.01018.25
7.1.40.0480.00618.30
7.1.30.0210.00918.37
7.1.20.0190.01018.28
7.1.10.0470.00714.68
7.1.00.0160.02016.07
7.0.330.0270.00713.82
7.0.320.0260.01213.97
7.0.310.0280.00714.05
7.0.300.0320.00614.02
7.0.290.0300.00914.19
7.0.280.0320.00313.89
7.0.270.0250.00914.50
7.0.260.0260.01014.64
7.0.250.0320.00514.60
7.0.240.0320.00614.34
7.0.230.0240.00914.50
7.0.220.0220.00914.38
7.0.210.0270.00914.32
7.0.200.0230.00614.77
7.0.190.0250.00514.24
7.0.180.0400.00814.05
7.0.170.0290.00714.22
7.0.160.0320.00814.06
7.0.150.0280.01014.02
7.0.140.0210.02315.72
7.0.130.0210.01915.74
7.0.120.0250.01014.09
7.0.110.0210.01314.24
7.0.100.0220.01215.39
7.0.90.0180.02015.42
7.0.80.0210.02215.34
7.0.70.0220.01415.28
7.0.60.0240.02015.17
7.0.50.0210.01615.44
7.0.40.0180.01815.42
7.0.30.0190.01515.48
7.0.20.0270.01815.46
7.0.10.0240.02415.42
7.0.00.0240.02715.44
5.6.400.0110.01514.91
5.6.390.0130.00514.88
5.6.380.0150.00414.72
5.6.370.0130.00914.99
5.6.360.0140.01014.68
5.6.350.0110.01214.76
5.6.340.0130.00914.85
5.6.330.0200.00514.81
5.6.320.0080.01114.77
5.6.310.0120.00914.69
5.6.300.0170.02016.22
5.6.290.0110.02016.25
5.6.280.0080.03417.31
5.6.270.0110.02616.44
5.6.260.0140.02216.26
5.6.250.0120.03317.22
5.6.240.0100.03417.13
5.6.230.0120.02417.14
5.6.220.0120.03017.21
5.6.210.0140.03017.01
5.6.200.0120.03917.16
5.6.190.0120.03417.22
5.6.180.0150.02617.23
5.6.170.0110.03317.17
5.6.160.0180.02817.21
5.6.150.0120.03117.24
5.6.140.0110.03417.13
5.6.130.0110.03117.08
5.6.120.0130.03217.25
5.6.110.0110.03217.03
5.6.100.0160.03117.10
5.6.90.0140.03717.23
5.6.80.0110.03416.82
5.6.70.0150.02716.93
5.6.60.0120.02416.84
5.6.50.0170.02716.91
5.6.40.0100.03416.91
5.6.30.0140.03216.92
5.6.20.0140.02616.99
5.6.10.0100.03316.91
5.6.00.0110.02916.90
5.5.380.0130.02415.82
5.5.370.0110.03215.78
5.5.360.0180.03015.73
5.5.350.0180.03315.75
5.5.340.0120.03115.96
5.5.330.0080.03316.03
5.5.320.0120.02915.91
5.5.310.0170.02715.93
5.5.300.0140.02715.96
5.5.290.0170.02515.93
5.5.280.0120.03115.75
5.5.270.0130.03115.90
5.5.260.0130.03215.82
5.5.250.0120.03815.72
5.5.240.0140.03015.54
5.5.230.0100.02715.61
5.5.220.0120.03115.77
5.5.210.0140.03215.70
5.5.200.0160.03415.70
5.5.190.0160.03015.55
5.5.180.0150.03215.62
5.5.170.0120.00813.62
5.5.160.0100.03415.73
5.5.150.0150.02615.74
5.5.140.0170.02515.63
5.5.130.0150.02615.63
5.5.120.0120.02715.56
5.5.110.0080.03915.65
5.5.100.0140.02915.64
5.5.90.0100.03015.61
5.5.80.0130.02415.64
5.5.70.0150.02315.58
5.5.60.0120.03315.57
5.5.50.0110.02815.70
5.5.40.0120.02915.52
5.5.30.0130.03115.53
5.5.20.0100.03415.59
5.5.10.0110.02415.50
5.5.00.0110.03515.55
5.4.450.0120.03514.73
5.4.440.0120.03014.54
5.4.430.0140.03114.68
5.4.420.0180.02714.67
5.4.410.0110.03214.71
5.4.400.0100.03314.59
5.4.390.0090.02314.49
5.4.380.0120.02714.44
5.4.370.0100.03414.50
5.4.360.0090.03114.41
5.4.350.0100.02314.53
5.4.340.0140.03414.44
5.4.330.0120.00611.45
5.4.320.0080.03414.38
5.4.310.0140.02914.56
5.4.300.0100.03114.47
5.4.290.0120.02614.43
5.4.280.0110.03314.54
5.4.270.0140.02414.39
5.4.260.0090.02814.40
5.4.250.0100.03214.36
5.4.240.0150.02414.70
5.4.230.0110.02914.44
5.4.220.0090.03114.61
5.4.210.0120.02614.59
5.4.200.0100.03114.41
5.4.190.0140.02914.46
5.4.180.0110.02814.53
5.4.170.0140.02914.50
5.4.160.0140.02614.41
5.4.150.0130.03214.47
5.4.140.0110.02813.43
5.4.130.0090.02913.53
5.4.120.0080.03113.52
5.4.110.0100.02613.48
5.4.100.0090.02813.44
5.4.90.0080.03213.56
5.4.80.0120.02713.48
5.4.70.0130.02413.55
5.4.60.0090.02913.54
5.4.50.0100.02413.47
5.4.40.0100.02513.62
5.4.30.0110.02813.57
5.4.20.0120.02413.39
5.4.10.0090.02213.47
5.4.00.0090.02713.17
5.3.290.0120.02812.70
5.3.280.0090.03012.65
5.3.270.0120.03012.80
5.3.260.0110.02512.72
5.3.250.0120.02912.72
5.3.240.0130.02812.69
5.3.230.0090.02312.68
5.3.220.0100.02512.62
5.3.210.0110.02612.60
5.3.200.0110.03212.60
5.3.190.0120.02712.60
5.3.180.0130.02912.69
5.3.170.0090.02812.72
5.3.160.0130.02212.72
5.3.150.0110.02312.76
5.3.140.0110.02512.61
5.3.130.0150.02012.59
5.3.120.0110.02512.63
5.3.110.0090.02712.64
5.3.100.0120.02712.44
5.3.90.0120.02712.53
5.3.80.0110.02812.39
5.3.70.0060.02612.41
5.3.60.0080.03212.38
5.3.50.0130.02712.35
5.3.40.0120.02412.45
5.3.30.0110.02312.36
5.3.20.0080.02412.27
5.3.10.0090.02712.20
5.3.00.0110.02012.15
5.2.170.0140.00711.80
5.2.160.0170.00211.94
5.2.150.0160.00811.91
5.2.140.0070.01311.86
5.2.130.0110.00811.74
5.2.120.0120.00711.86
5.2.110.0190.00611.85
5.2.100.0150.00611.86
5.2.90.0160.00811.80
5.2.80.0160.00311.96
5.2.70.0040.01611.95
5.2.60.0170.00311.64
5.2.50.0130.00711.72
5.2.40.0050.01511.71
5.2.30.0140.00611.66
5.2.20.0130.01011.64
5.2.10.0160.00311.64
5.2.00.0130.00711.64
5.1.60.0130.00511.64
5.1.50.0140.00411.64
5.1.40.0160.00011.64
5.1.30.0110.00611.64
5.1.20.0100.00711.64
5.1.10.0090.00911.64
5.1.00.0180.00011.64
5.0.50.0150.00011.64
5.0.40.0110.00411.64
5.0.30.0080.00811.64
5.0.20.0090.00511.64
5.0.10.0160.00011.64
5.0.00.0070.00711.64
4.4.90.0090.00311.64
4.4.80.0060.00311.64
4.4.70.0100.00011.64
4.4.60.0090.00011.64
4.4.50.0090.00011.64
4.4.40.0060.00311.64
4.4.30.0030.00611.64
4.4.20.0050.00511.64
4.4.10.0090.00011.64
4.4.00.0090.00011.64
4.3.110.0000.00911.64
4.3.100.0110.00011.64
4.3.90.0080.00411.64
4.3.80.0060.00311.64
4.3.70.0050.00511.64
4.3.60.0070.00211.64
4.3.50.0060.00311.64
4.3.40.0040.00411.64
4.3.30.0060.00211.64
4.3.20.0050.00311.64
4.3.10.0060.00211.64
4.3.00.0050.00511.64

preferences:
30.44 ms | 403 KiB | 5 Q