3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?callable $bar) { } 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.3.140.0050.00320.65
8.3.130.0030.00618.17
8.3.120.0040.00419.06
8.3.110.0050.00520.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0100.00316.50
8.3.70.0100.00516.63
8.3.60.0090.00618.55
8.3.50.0120.00918.31
8.3.40.0070.00720.41
8.3.30.0110.00718.62
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.250.0070.01118.16
8.2.240.0150.00419.07
8.2.230.0060.00322.58
8.2.220.0030.00537.54
8.2.210.0110.00726.77
8.2.200.0050.00316.38
8.2.190.0160.00316.63
8.2.180.0130.00325.92
8.2.170.0090.00618.97
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00720.69
8.2.110.0090.00019.17
8.2.100.0080.00417.84
8.2.90.0040.00417.63
8.2.80.0040.00418.79
8.2.70.0030.00617.91
8.2.60.0050.00317.92
8.2.50.0040.00418.07
8.2.40.0050.00318.22
8.2.30.0000.00817.96
8.2.20.0040.00419.30
8.2.10.0050.00318.04
8.2.00.0040.00419.29
8.1.300.0060.00319.50
8.1.290.0040.00818.88
8.1.280.0150.00325.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0070.00319.38
8.1.230.0070.00719.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0040.00418.86
8.1.160.0000.00718.87
8.1.150.0070.00418.59
8.1.140.0070.00417.35
8.1.130.0000.00818.89
8.1.120.0070.00017.36
8.1.110.0000.00717.41
8.1.100.0040.00417.38
8.1.90.0000.01617.22
8.1.80.0000.01517.37
8.1.70.0150.00017.27
8.1.60.0060.01217.41
8.1.50.0150.00317.40
8.1.40.0090.00917.42
8.1.30.0120.00517.58
8.1.20.0060.01117.42
8.1.10.0040.01317.39
8.1.00.0070.01117.44
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0070.00018.44
8.0.270.0030.00316.79
8.0.260.0030.00318.46
8.0.250.0040.00416.91
8.0.240.0000.00717.02
8.0.230.0080.00816.74
8.0.220.0120.00316.82
8.0.210.0130.00016.84
8.0.200.0130.00316.89
8.0.190.0130.00216.85
8.0.180.0120.00316.91
8.0.170.0120.00216.84
8.0.160.0120.00216.89
8.0.150.0110.00316.73
8.0.140.0150.00016.82
8.0.130.0150.00016.80
8.0.120.0070.00716.79
8.0.110.0070.00716.93
8.0.100.0120.00316.69
8.0.90.0070.00716.79
8.0.80.0080.00416.81
8.0.70.0110.00016.79
8.0.60.0100.00516.77
8.0.50.0160.00016.86
8.0.30.0090.00616.79
8.0.20.0140.00216.86
8.0.10.0050.01116.88
8.0.00.0120.00317.05
7.4.330.0000.00515.55
7.4.320.0060.00016.53
7.4.300.0080.00816.52
7.4.290.0120.00416.56
7.4.280.0130.00216.34
7.4.270.0130.00316.43
7.4.260.0100.00716.42
7.4.250.0050.00718.39
7.4.240.0150.00016.38
7.4.230.0110.00316.41
7.4.220.0110.00016.37
7.4.210.0060.00616.41
7.4.200.0080.00416.36
7.4.190.0060.00616.38
7.4.180.0030.01016.47
7.4.160.0060.00316.56
7.4.150.0060.00316.49
7.4.140.0060.00016.16
7.4.130.0070.00016.08
7.4.120.0030.00316.12
7.4.110.0070.00015.99
7.4.100.0040.00416.30
7.4.90.0030.00316.15
7.4.80.0030.00316.21
7.4.70.0040.00416.35
7.4.60.0060.00016.36
7.4.50.0030.00316.19
7.4.40.0030.00316.04
7.4.30.0050.00516.14
7.4.20.0060.00416.08
7.4.10.0050.00516.35
7.4.00.0000.01016.01
7.3.330.0090.00516.15
7.3.320.0100.00516.09
7.3.310.0120.00316.24
7.3.300.0130.00016.19
7.3.290.0060.00916.26
7.3.280.0070.00716.23
7.3.270.0150.00016.07
7.3.260.0000.01416.21
7.3.250.0110.00316.21
7.3.240.0100.00316.18
7.3.230.0070.00716.21
7.3.220.0140.00016.30
7.3.210.0150.00016.23
7.3.200.0100.00416.20
7.3.190.0100.00316.22
7.3.180.0050.00916.26
7.3.170.0090.00616.04
7.3.160.0120.00216.26
7.3.150.0120.00416.24
7.3.140.0150.00016.21
7.3.130.0110.00316.33
7.3.120.0110.00316.26
7.3.110.0100.00516.08
7.3.100.0110.00316.20
7.3.90.0090.00516.23
7.3.80.0000.01416.05
7.3.70.0100.00416.22
7.3.60.0100.00316.40
7.3.50.0050.00916.28
7.3.40.0070.00716.21
7.3.30.0090.00416.28
7.3.20.0110.00318.20
7.3.10.0090.00618.25
7.3.00.0100.00518.05
7.2.340.0060.00716.24
7.2.330.0090.00516.25
7.2.320.0000.01416.23
7.2.310.0090.00616.11
7.2.300.0100.00516.10
7.2.290.0120.00216.10
7.2.280.0070.00716.12
7.2.270.0140.00016.22
7.2.260.0110.00416.21
7.2.250.0110.00416.25
7.2.240.0110.00416.35
7.2.230.0110.00316.12
7.2.220.0140.00016.25
7.2.210.0140.00016.22
7.2.200.0050.01116.39
7.2.190.0070.00716.41
7.2.180.0120.00216.35
7.2.170.0120.00316.47
7.2.160.0070.00716.24
7.2.150.0120.00318.26
7.2.140.0090.00518.30
7.2.130.0090.00618.37
7.2.120.0070.00718.36
7.2.110.0150.00018.39
7.2.100.0090.00618.18
7.2.90.0070.00718.30
7.2.80.0110.00218.14
7.2.70.0110.00418.27
7.2.60.0070.01018.39
7.2.50.0090.00618.26
7.2.40.0130.00318.38
7.2.30.0130.00318.44
7.2.20.0100.00518.50
7.2.10.0040.01218.31
7.2.00.0140.00018.28
7.1.330.0140.00017.32
7.1.320.0050.00917.19
7.1.310.0130.00017.11
7.1.300.0070.00717.05
7.1.290.0100.00517.34
7.1.280.0100.00517.29
7.1.270.0140.00017.19
7.1.260.0140.00017.22
7.1.250.0090.00516.97
7.1.240.0100.00317.14
7.1.230.0110.00417.29
7.1.220.0140.00217.15
7.1.210.0120.00217.29
7.1.200.0100.00317.22
7.1.190.0150.00017.25
7.1.180.0120.00417.25
7.1.170.0070.00717.23
7.1.160.0110.00317.18
7.1.150.0110.00317.06
7.1.140.0050.00917.14
7.1.130.0090.00617.05
7.1.120.0050.00917.18
7.1.110.0110.00317.19
7.1.100.0090.00517.22
7.1.90.0090.00617.21
7.1.80.0100.00417.15
7.1.70.0100.00317.06
7.1.60.0070.00717.12
7.1.50.0070.00717.33
7.1.40.0050.01017.11
7.1.30.0070.00717.11
7.1.20.0120.00317.00
7.1.10.0000.01317.13
7.1.00.0120.00217.00
7.0.330.0100.00416.72
7.0.320.0000.01316.66
7.0.310.0140.00016.79
7.0.300.0130.00016.66
7.0.290.0070.00716.61
7.0.280.0130.00016.61
7.0.270.0080.00516.95
7.0.260.0080.00516.67
7.0.250.0110.00316.74
7.0.240.0110.00216.95
7.0.230.0070.00716.93
7.0.220.0110.00316.86
7.0.210.0070.00716.95
7.0.200.0130.00016.77
7.0.190.0140.00016.78
7.0.180.0090.00516.70
7.0.170.0110.00216.80
7.0.160.0130.00016.75
7.0.150.0080.00516.78
7.0.140.0100.00316.75
7.0.130.0100.00316.90
7.0.120.0070.00616.69
7.0.110.0110.00216.88
7.0.100.0090.00516.87
7.0.90.0070.00716.81
7.0.80.0130.00016.67
7.0.70.0070.00716.70
7.0.60.0100.00316.67
7.0.50.0120.00016.54
7.0.40.0100.00216.80
7.0.30.0110.00216.73
7.0.20.0000.01316.88
7.0.10.0080.00416.98
7.0.00.0070.00516.82
5.6.400.0090.00415.46
5.6.390.0120.00015.70
5.6.380.0080.00415.64
5.6.370.0080.00515.61
5.6.360.0050.00815.64
5.6.350.0100.00215.56
5.6.340.0070.00615.45
5.6.330.0130.00015.34
5.6.320.0110.00315.66
5.6.310.0070.00715.43
5.6.300.0090.00415.46
5.6.290.0110.00215.59
5.6.280.0130.00015.69
5.6.270.0100.00315.44
5.6.260.0090.00315.44
5.6.250.0090.00415.57
5.6.240.0040.00815.64
5.6.230.0060.00615.72
5.6.220.0100.00315.52
5.6.210.0130.00015.63
5.6.200.0090.00415.75
5.6.190.0100.00315.73
5.6.180.0030.01215.75
5.6.170.0100.00315.55
5.6.160.0060.00615.67
5.6.150.0070.00715.73
5.6.140.0100.00315.71
5.6.130.0130.00015.75
5.6.120.0080.00515.68
5.6.110.0080.00415.66
5.6.100.0100.00315.42
5.6.90.0100.00315.55
5.6.80.0080.00415.64
5.6.70.0060.00615.70
5.6.60.0090.00315.74
5.6.50.0100.00315.38
5.6.40.0100.00215.55
5.6.30.0060.00615.46
5.6.20.0080.00415.55
5.6.10.0060.00615.59
5.6.00.0090.00315.52
5.5.380.0040.00915.80
5.5.370.0130.00015.60
5.5.360.0090.00415.54
5.5.350.0050.00815.41
5.5.340.0090.00415.32
5.5.330.0130.00015.40
5.5.320.0130.00015.60
5.5.310.0090.00415.44
5.5.300.0040.00915.63
5.5.290.0100.00315.42
5.5.280.0130.00015.40
5.5.270.0090.00515.52
5.5.260.0090.00515.39
5.5.250.0070.00615.45
5.5.240.0130.00015.72
5.5.230.0090.00415.75
5.5.220.0110.00215.40
5.5.210.0100.00215.39
5.5.200.0090.00415.24
5.5.190.0040.00915.41
5.5.180.0060.00615.37
5.5.170.0080.00415.20
5.5.160.0040.00815.34
5.5.150.0030.00915.39
5.5.140.0080.00415.13
5.5.130.0050.00915.27
5.5.120.0070.00715.34
5.5.110.0040.00815.42
5.5.100.0080.00415.54
5.5.90.0130.00015.65
5.5.80.0120.00015.37
5.5.70.0120.00015.68
5.5.60.0080.00415.55
5.5.50.0060.00615.63
5.5.40.0060.00615.66
5.5.30.0090.00315.38
5.5.20.0000.01215.33
5.5.10.0090.00315.57
5.5.00.0130.00015.50
5.4.450.0100.00012.58
5.4.440.0100.00012.42
5.4.430.0030.00712.40
5.4.420.0100.00012.28
5.4.410.0070.00312.28
5.4.400.0110.00012.14
5.4.390.0070.00412.22
5.4.380.0050.00512.36
5.4.370.0040.00712.21
5.4.360.0090.00212.45
5.4.350.0070.00412.50
5.4.340.0100.00012.52
5.4.330.0050.00512.52
5.4.320.0100.00012.27
5.4.310.0050.00512.41
5.4.300.0100.00012.51
5.4.290.0070.00312.19
5.4.280.0100.00012.43
5.4.270.0100.00012.20
5.4.260.0110.00012.11
5.4.250.0110.00012.36
5.4.240.0070.00412.52
5.4.230.0100.00012.25
5.4.220.0070.00412.04
5.4.210.0070.00411.97
5.4.200.0030.00712.33
5.4.190.0040.00712.18
5.4.180.0040.00712.18
5.4.170.0050.00512.32
5.4.160.0110.00012.09
5.4.150.0040.00712.07
5.4.140.0070.00412.25
5.4.130.0060.00312.54
5.4.120.0050.00512.57
5.4.110.0050.00512.29
5.4.100.0060.00512.42
5.4.90.0070.00312.40
5.4.80.0100.00012.26
5.4.70.0040.00712.64
5.4.60.0030.00712.48
5.4.50.0030.00712.18
5.4.40.0080.00212.36
5.4.30.0100.00012.50
5.4.20.0070.00312.41
5.4.10.0080.00312.42
5.4.00.0090.00312.13
5.3.290.0070.00312.74
5.3.280.0050.00512.55
5.3.270.0040.00712.82
5.3.260.0100.00012.58
5.3.250.0110.00012.61
5.3.240.0040.00812.77
5.3.230.0060.00612.54
5.3.220.0070.00412.61
5.3.210.0080.00312.53
5.3.200.0050.00512.57
5.3.190.0110.00012.62
5.3.180.0000.01113.04
5.3.170.0070.00413.02
5.3.160.0110.00012.75
5.3.150.0110.00012.95
5.3.140.0080.00412.67
5.3.130.0110.00012.88
5.3.120.0110.00012.68
5.3.110.0110.00012.68
5.3.100.0060.00412.63
5.3.90.0090.00012.77
5.3.80.0070.00312.79
5.3.70.0070.00312.83
5.3.60.0100.00012.92
5.3.50.0070.00312.80
5.3.40.0070.00312.62
5.3.30.0060.00312.85
5.3.20.0100.00012.76
5.3.10.0080.00312.50
5.3.00.0070.00312.41
5.2.170.0090.00011.84
5.2.160.0080.00011.67
5.2.150.0040.00411.90
5.2.140.0060.00311.81
5.2.130.0080.00011.87
5.2.120.0090.00011.84
5.2.110.0040.00411.63
5.2.100.0050.00511.87
5.2.90.0040.00411.62
5.2.80.0090.00011.63
5.2.70.0060.00311.54
5.2.60.0050.00511.50
5.2.50.0050.00411.62
5.2.40.0050.00311.62
5.2.30.0060.00211.55
5.2.20.0040.00411.41
5.2.10.0000.00811.55
5.2.00.0090.00011.46
5.1.60.0040.00410.89
5.1.50.0080.00010.93
5.1.40.0000.00711.05
5.1.30.0070.00010.96
5.1.20.0040.00410.70
5.1.10.0000.00810.68
5.1.00.0070.00010.50
5.0.50.0060.00010.14
5.0.40.0040.0049.77
5.0.30.0060.0009.91
5.0.20.0060.0009.71
5.0.10.0000.0069.82
5.0.00.0000.0069.70
4.4.90.0000.0049.60
4.4.80.0040.0009.60
4.4.70.0000.0039.60
4.4.60.0000.0049.60
4.4.50.0040.0009.60
4.4.40.0040.0009.60
4.4.30.0030.0009.60
4.4.20.0040.0009.60
4.4.10.0040.0009.60
4.4.00.0000.0039.60
4.3.110.0040.0009.60
4.3.100.0030.0009.60
4.3.90.0040.0009.60
4.3.80.0040.0009.60
4.3.70.0020.0029.60
4.3.60.0000.0049.60
4.3.50.0000.0049.60
4.3.40.0000.0049.60
4.3.30.0000.0039.60
4.3.20.0030.0009.60
4.3.10.0010.0019.60
4.3.00.0030.0009.60

preferences:
49.83 ms | 403 KiB | 5 Q