3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $bar = null) { } foo(null); foo(function() {}); foo('strpos'); foo('foo'); foo(array(new SplFixedArray(), 'fromArray')); foo(array('SplFixedArray', 'fromArray')); foo('SplFixedArray::fromArray');

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.4.20.0000.00919.65
8.4.10.0080.00819.53
8.3.150.0100.01018.99
8.3.140.0080.00417.29
8.3.130.0080.00018.35
8.3.120.0000.01918.94
8.3.110.0100.00020.94
8.3.100.0000.00924.06
8.3.90.0050.00326.77
8.3.80.0030.00617.97
8.3.70.0130.00718.55
8.3.60.0070.01116.49
8.3.50.0050.00917.31
8.3.40.0040.01518.81
8.3.30.0080.00618.35
8.3.20.0000.00821.90
8.3.10.0000.00721.89
8.3.00.0040.00419.56
8.2.270.0170.00018.72
8.2.260.0080.00316.51
8.2.250.0000.00816.65
8.2.240.0160.00317.13
8.2.230.0090.00022.58
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0060.00316.88
8.2.190.0100.01016.58
8.2.180.0140.00718.18
8.2.170.0120.00918.89
8.2.160.0110.00422.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0070.00019.43
8.2.110.0060.00322.28
8.2.100.0060.00619.51
8.2.90.0030.00617.88
8.2.80.0050.00318.83
8.2.70.0030.00517.80
8.2.60.0050.00517.50
8.2.50.0040.00417.63
8.2.40.0050.00317.68
8.2.30.0000.00719.44
8.2.20.0000.00718.11
8.2.10.0000.00717.96
8.2.00.0030.00617.98
8.1.310.0000.00818.26
8.1.300.0040.00418.06
8.1.290.0060.00330.84
8.1.280.0150.00025.92
8.1.270.0000.00823.79
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.19
8.1.230.0080.00417.70
8.1.220.0080.00017.77
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0000.00917.22
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0040.00418.75
8.1.150.0000.00818.93
8.1.140.0070.00017.54
8.1.130.0070.00018.91
8.1.120.0070.00017.41
8.1.110.0050.00217.41
8.1.100.0050.00217.41
8.1.90.0040.00417.46
8.1.80.0030.00517.45
8.1.70.0030.00317.39
8.1.60.0030.00717.43
8.1.50.0030.00517.34
8.1.40.0080.00317.40
8.1.30.0050.00317.60
8.1.20.0000.00917.50
8.1.10.0000.00817.48
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0030.00318.50
8.0.270.0000.00716.77
8.0.260.0060.00017.25
8.0.250.0070.00017.00
8.0.240.0040.00416.85
8.0.230.0000.00716.82
8.0.220.0000.00816.73
8.0.210.0000.00716.83
8.0.200.0040.00416.92
8.0.190.0040.00416.77
8.0.180.0080.00016.73
8.0.170.0050.00516.82
8.0.160.0040.00416.79
8.0.150.0000.00716.63
8.0.140.0050.00316.68
8.0.130.0030.00313.33
8.0.120.0030.00516.86
8.0.110.0000.00716.82
8.0.100.0000.00716.82
8.0.90.0070.00016.86
8.0.80.0000.01616.78
8.0.70.0070.00016.77
8.0.60.0000.00716.71
8.0.50.0040.00416.73
8.0.30.0080.01116.90
8.0.20.0080.01217.17
8.0.10.0170.01016.71
8.0.00.0110.00916.86
7.4.330.0000.00415.55
7.4.320.0030.00316.45
7.4.300.0060.00016.57
7.4.290.0030.00316.52
7.4.280.0090.00016.33
7.4.270.0000.00716.45
7.4.260.0000.00716.34
7.4.250.0070.00016.48
7.4.240.0000.00716.43
7.4.230.0020.00516.43
7.4.220.0000.00716.29
7.4.210.0060.01216.54
7.4.200.0000.00716.33
7.4.160.0150.01016.41
7.4.150.0040.01516.30
7.4.140.0090.01117.57
7.4.130.0130.00816.49
7.4.120.0080.01016.49
7.4.110.0120.00816.54
7.4.100.0150.00616.43
7.4.90.0090.00816.41
7.4.80.0140.00917.88
7.4.70.0140.00716.49
7.4.60.0130.00716.39
7.4.50.0070.01016.19
7.4.40.0120.00716.28
7.4.30.0130.00416.20
7.4.20.0080.01016.37
7.4.10.0060.01315.84
7.4.00.0070.01115.92
7.3.330.0000.00713.20
7.3.320.0030.00313.28
7.3.310.0060.00016.13
7.3.300.0070.00016.22
7.3.290.0040.00416.09
7.3.280.0110.00416.23
7.3.270.0170.00716.27
7.3.260.0100.00816.34
7.3.250.0060.01816.32
7.3.240.0110.00816.36
7.3.230.0110.01116.23
7.3.220.0090.01316.22
7.3.210.0080.00916.40
7.3.200.0100.00916.36
7.3.190.0090.01016.30
7.3.180.0100.01016.34
7.3.170.0080.01116.30
7.3.160.0080.00916.30
7.3.150.0070.01116.33
7.3.140.0100.00916.24
7.3.130.0100.00815.88
7.3.120.0110.01015.91
7.3.110.0080.01315.89
7.3.100.0110.00715.90
7.3.90.0090.00915.99
7.3.80.0080.00915.99
7.3.70.0070.00815.85
7.3.60.0080.01015.99
7.3.50.0110.00615.66
7.3.40.0090.00815.48
7.3.30.0080.00715.27
7.3.20.2820.00916.16
7.3.10.2110.00716.08
7.3.00.1110.00616.18
7.2.340.0230.01416.49
7.2.330.0180.01016.48
7.2.320.0210.00716.57
7.2.310.0180.01216.49
7.2.300.0150.01416.41
7.2.290.0130.01216.45
7.2.280.0150.01116.59
7.2.270.0130.01216.38
7.2.260.0110.01115.87
7.2.250.0160.00716.02
7.2.240.0120.01316.04
7.2.230.0170.00516.08
7.2.220.0120.00916.05
7.2.210.0140.01116.08
7.2.200.0150.00916.00
7.2.190.0120.01216.08
7.2.180.0100.01015.80
7.2.170.0140.00615.61
7.2.160.0100.00915.58
7.2.150.0180.01016.36
7.2.140.2320.00816.42
7.2.130.1160.00616.28
7.2.120.1310.00716.29
7.2.110.1140.00716.41
7.2.100.0990.00916.38
7.2.90.0750.00916.36
7.2.80.0840.00916.31
7.2.70.0740.00516.42
7.2.60.0690.00916.40
7.2.50.0120.00716.38
7.2.40.0440.00816.51
7.2.30.0540.01216.56
7.2.20.0310.00816.48
7.2.10.0260.00916.46
7.2.00.0260.01216.51
7.1.330.0120.01115.31
7.1.320.0130.00815.29
7.1.310.0130.00815.48
7.1.300.0110.00915.33
7.1.290.0130.00915.44
7.1.280.0110.00815.44
7.1.270.0110.00815.19
7.1.260.1940.01015.15
7.1.250.1200.00715.19
7.1.240.1160.00915.16
7.1.230.0740.01015.19
7.1.220.0970.00915.15
7.1.210.0800.00815.13
7.1.200.0680.01015.22
7.1.190.0670.00815.11
7.1.180.0660.01215.17
7.1.170.0500.00815.13
7.1.160.0600.00915.37
7.1.150.0320.00815.28
7.1.140.0310.00815.33
7.1.130.0310.00915.29
7.1.120.0510.01015.25
7.1.110.0230.01015.33
7.1.100.0250.01015.33
7.1.90.0690.00915.35
7.1.80.0430.00915.20
7.1.70.0370.00915.11
7.1.60.0440.00817.33
7.1.50.0410.01017.38
7.1.40.0380.01117.41
7.1.30.0470.01017.38
7.1.20.0480.00917.37
7.1.10.0400.01115.08
7.1.00.0370.00615.10
7.0.330.1910.00814.86
7.0.320.0160.00915.02
7.0.310.0140.01014.98
7.0.300.0060.00914.99
7.0.290.0160.01015.06
7.0.280.0360.00615.04
7.0.270.0190.00714.99
7.0.260.0230.00915.07
7.0.250.0130.01115.10
7.0.240.0120.01215.08
7.0.230.0210.00615.01
7.0.220.0180.00715.04
7.0.210.0110.01215.12
7.0.200.0140.01015.09
7.0.190.0260.00915.13
7.0.180.0130.01115.11
7.0.170.0160.01015.13
7.0.160.0140.00715.02
7.0.150.0140.00814.98
7.0.140.0130.01015.06
7.0.130.0210.00414.93
7.0.120.0090.01115.10
7.0.110.0090.00914.98
7.0.100.0130.00915.08
7.0.90.0140.00915.00
7.0.80.0190.00715.05
7.0.70.0120.01114.91
7.0.60.0150.01015.03
7.0.50.0120.01115.13
7.0.40.0130.01114.90
7.0.30.0130.00914.84
7.0.20.0100.01215.06
7.0.10.0160.00714.97
7.0.00.0120.01115.05
5.6.400.0130.01115.05
5.6.390.0120.01014.96
5.6.380.0140.01114.95
5.6.370.0150.01115.85
5.6.360.0100.01215.81
5.6.350.0160.01215.65
5.6.340.0170.00915.97
5.6.330.0140.01415.85
5.6.320.0140.01215.83
5.6.310.0160.00915.78
5.6.300.0120.01215.71
5.6.290.0140.01415.81
5.6.280.0130.01615.67
5.6.270.0150.01215.74
5.6.260.0150.00815.71
5.6.250.0130.01315.63
5.6.240.0170.01115.78
5.6.230.0120.01415.62
5.6.220.0140.01215.90
5.6.210.0100.01615.72
5.6.200.0140.01415.67
5.6.190.0140.01415.65
5.6.180.0120.01415.80
5.6.170.0190.00915.90
5.6.160.0160.00815.63
5.6.150.0120.01215.84
5.6.140.0100.01315.71
5.6.130.0150.01015.70
5.6.120.0090.01315.57
5.6.110.0120.01215.70
5.6.100.0160.01115.69
5.6.90.0170.00815.74
5.6.80.0180.00815.68
5.6.70.0150.01015.57
5.6.60.0120.01415.64
5.6.50.0120.01315.68
5.6.40.0110.01415.67
5.6.30.0120.01115.77
5.6.20.0120.01315.78
5.6.10.0120.01315.62
5.6.00.0170.00715.56
5.5.380.0230.01415.75
5.5.370.0290.01215.78
5.5.360.0240.01115.60
5.5.350.0350.00415.85
5.5.340.0160.02015.67
5.5.330.0270.01315.77
5.5.320.0240.01515.61
5.5.310.0260.01015.93
5.5.300.0180.01715.74
5.5.290.0270.00915.61
5.5.280.0300.01415.79
5.5.270.0290.00415.63
5.5.260.0240.00815.82
5.5.250.0170.01915.75
5.5.240.0160.01415.69
5.5.230.0230.01115.59
5.5.220.0230.01115.72
5.5.210.0130.01915.63
5.5.200.0290.00615.63
5.5.190.0250.00615.79
5.5.180.0260.00915.64
5.5.170.0160.01615.78
5.5.160.0210.01015.74
5.5.150.0150.01815.75
5.5.140.0230.01015.71
5.5.130.0130.02015.80
5.5.120.0250.00915.91
5.5.110.0210.01215.66
5.5.100.0200.01515.79
5.5.90.0140.01715.91
5.5.80.0200.01215.80
5.5.70.0230.01415.75
5.5.60.0150.01515.50
5.5.50.0190.01415.64
5.5.40.0100.02015.66
5.5.30.0180.01515.69
5.5.20.0190.01215.52
5.5.10.0220.01315.75
5.5.00.0160.01815.75
5.4.450.0190.01012.70
5.4.440.0170.00712.50
5.4.430.0160.01012.75
5.4.420.0130.01312.47
5.4.410.0180.00812.52
5.4.400.0180.01112.45
5.4.390.0110.00912.41
5.4.380.0140.01112.44
5.4.370.0100.01312.63
5.4.360.0210.00012.49
5.4.350.0130.01312.52
5.4.340.0200.00812.75
5.4.330.0170.00612.74
5.4.320.0120.01212.61
5.4.310.0150.00912.38
5.4.300.0180.00612.42
5.4.290.0260.00212.56
5.4.280.0240.00312.77
5.4.270.0120.01612.68
5.4.260.0160.01012.65
5.4.250.0160.01012.64
5.4.240.0170.00712.74
5.4.230.0150.01012.82
5.4.220.0110.01112.49
5.4.210.0200.00412.37
5.4.200.0180.00712.52
5.4.190.0180.00712.51
5.4.180.0240.00012.74
5.4.170.0220.00012.54
5.4.160.0190.00812.34
5.4.150.0180.00812.42
5.4.140.0200.00712.43
5.4.130.0150.00912.51
5.4.120.0120.01112.82
5.4.110.0140.00712.62
5.4.100.0160.00712.48
5.4.90.0100.00712.50
5.4.80.0080.01112.95
5.4.70.0180.00912.51
5.4.60.0140.00412.41
5.4.50.0130.01012.66
5.4.40.0120.01212.57
5.4.30.0080.00912.65
5.4.20.0140.00912.53
5.4.10.0150.00812.66
5.4.00.0240.00012.63
5.3.290.0250.00313.09
5.3.280.0200.00612.99
5.3.270.0160.00813.19
5.3.260.0150.01313.03
5.3.250.0200.00613.03
5.3.240.0180.00712.91
5.3.230.0140.01312.93
5.3.220.0130.01312.94
5.3.210.0220.00312.93
5.3.200.0170.01212.77
5.3.190.0190.00712.99
5.3.180.0160.00812.96
5.3.170.0110.01513.09
5.3.160.0230.00412.98
5.3.150.0100.00812.99
5.3.140.0140.01113.04
5.3.130.0190.01212.93
5.3.120.0250.00313.04
5.3.110.0230.00613.03
5.3.100.0160.01013.00
5.3.90.0150.00512.95
5.3.80.0240.00812.70
5.3.70.0260.01112.75
5.3.60.0160.01112.98
5.3.50.0110.01612.73
5.3.40.0210.00712.80
5.3.30.0150.00812.74
5.3.20.0170.01212.73
5.3.10.0210.00412.64
5.3.00.0080.00912.59
5.2.170.0110.01111.92
5.2.160.0100.01311.80
5.2.150.0160.00711.91
5.2.140.0100.00811.71
5.2.130.0070.01711.80
5.2.120.0130.00911.86
5.2.110.0070.01711.90
5.2.100.0190.00211.87
5.2.90.0230.00011.87
5.2.80.0120.01111.72
5.2.70.0130.01211.71
5.2.60.0130.00711.66
5.2.50.0190.00311.87
5.2.40.0120.01111.84
5.2.30.0180.00311.78
5.2.20.0180.00411.65
5.2.10.0140.00511.64
5.2.00.0120.00911.64
5.1.60.0170.00411.64
5.1.50.0090.01311.64
5.1.40.0130.00711.64
5.1.30.0080.01211.64
5.1.20.0220.00011.64
5.1.10.0160.00611.64
5.1.00.0030.01611.64
5.0.50.0070.01111.64
5.0.40.0070.01011.64
5.0.30.0150.00011.64
5.0.20.0060.01011.64
5.0.10.0000.01411.64
5.0.00.0100.00811.64
4.4.90.0050.00011.64
4.4.80.0000.01311.64
4.4.70.0070.00511.64
4.4.60.0040.00511.64
4.4.50.0110.00011.64
4.4.40.0090.00311.64
4.4.30.0080.00411.64
4.4.20.0070.00311.64
4.4.10.0090.00311.64
4.4.00.0070.00311.64
4.3.110.0060.00611.64
4.3.100.0040.00811.64
4.3.90.0070.00311.64
4.3.80.0050.00511.64
4.3.70.0070.00311.64
4.3.60.0110.00011.64
4.3.50.0000.01011.64
4.3.40.0000.00911.64
4.3.30.0060.00411.64
4.3.20.0110.00011.64
4.3.10.0030.00611.64
4.3.00.0060.00311.64

preferences:
73.27 ms | 403 KiB | 5 Q