3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { static public function o() { return true;} } $cls = [ a::o(), 'a::o','strpos::test' , 'strlen', function(){}, null]; foreach($cls as $cl) { var_dump(is_callable($cl)); var_dump(is_callable($cl,true)); var_dump($cl instanceof Closure); }

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.0120.00616.50
8.3.50.0110.00622.04
8.3.40.0090.00618.92
8.3.30.0040.01219.27
8.3.20.0080.00020.32
8.3.10.0140.00323.62
8.3.00.0040.00419.11
8.2.180.0090.00618.43
8.2.170.0150.00022.96
8.2.160.0090.00920.26
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0000.00826.16
8.2.120.0000.00720.94
8.2.110.0030.00620.89
8.2.100.0110.00017.91
8.2.90.0040.00418.03
8.2.80.0040.00419.37
8.2.70.0040.00417.93
8.2.60.0030.00519.64
8.2.50.0030.00618.10
8.2.40.0000.00820.46
8.2.30.0050.00318.14
8.2.20.0070.00017.57
8.2.10.0040.00418.00
8.2.00.0050.00317.73
8.1.280.0120.00325.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00323.90
8.1.230.0040.00822.74
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0100.00018.65
8.1.160.0040.00422.16
8.1.150.0040.00418.66
8.1.140.0000.00817.37
8.1.130.0000.00717.69
8.1.120.0040.00417.36
8.1.110.0070.00017.42
8.1.100.0040.00417.54
8.1.90.0070.00017.40
8.1.80.0040.00417.30
8.1.70.0000.00717.34
8.1.60.0030.00617.53
8.1.50.0040.00417.41
8.1.40.0040.00417.54
8.1.30.0040.00417.73
8.1.20.0080.00017.49
8.1.10.0000.00817.55
8.1.00.0020.00517.38
8.0.300.0040.00420.02
8.0.290.0070.00016.63
8.0.280.0030.00318.32
8.0.270.0070.00017.32
8.0.260.0040.00417.23
8.0.250.0030.00316.83
8.0.240.0070.00016.98
8.0.230.0030.00316.98
8.0.220.0000.00716.91
8.0.210.0030.00316.93
8.0.200.0000.00617.01
8.0.190.0030.00616.96
8.0.180.0070.00016.89
8.0.170.0080.00016.82
8.0.160.0030.00316.87
8.0.150.0000.00816.84
8.0.140.0030.00516.85
8.0.130.0000.00613.35
8.0.120.0080.00016.89
8.0.110.0040.00416.92
8.0.100.0030.00516.84
8.0.90.0000.00816.77
8.0.80.0090.00616.79
8.0.70.0000.00816.79
8.0.60.0000.00716.87
8.0.50.0070.00016.89
8.0.30.0050.01417.22
8.0.20.0100.00917.40
8.0.10.0000.00717.07
8.0.00.0100.00916.68
7.4.330.0000.00515.14
7.4.320.0000.00616.66
7.4.300.0000.00716.52
7.4.290.0000.00616.61
7.4.280.0000.00716.55
7.4.270.0000.00716.60
7.4.260.0000.00716.57
7.4.250.0050.00216.52
7.4.240.0020.00516.56
7.4.230.0050.00216.52
7.4.220.0150.00916.71
7.4.210.0080.00816.55
7.4.200.0040.00416.50
7.4.190.0030.00316.70
7.4.160.0110.00716.38
7.4.150.0120.00617.40
7.4.140.0070.01317.86
7.4.130.0120.00816.44
7.4.120.0110.01016.45
7.4.110.0070.01016.44
7.4.100.0160.00316.48
7.4.90.0110.01216.38
7.4.80.0110.00719.39
7.4.70.0120.00416.57
7.4.60.0040.01216.34
7.4.50.0040.00416.53
7.4.40.0100.00916.57
7.4.30.0050.01016.65
7.4.00.0090.00614.96
7.3.330.0060.00013.23
7.3.320.0000.00513.30
7.3.310.0030.00316.42
7.3.300.0020.00516.23
7.3.290.0060.01016.35
7.3.280.0080.01216.36
7.3.270.0120.00617.40
7.3.260.0100.01316.64
7.3.250.0130.00716.39
7.3.240.0130.00716.67
7.3.230.0060.01116.60
7.3.210.0030.01516.49
7.3.200.0090.01219.39
7.3.190.0100.00616.40
7.3.180.0100.00716.36
7.3.170.0080.00816.58
7.3.160.0120.01516.45
7.3.120.0090.00314.72
7.3.10.0000.01616.41
7.3.00.0070.00716.45
7.2.330.0150.01116.57
7.2.320.0000.01716.84
7.2.310.0120.00916.45
7.2.300.0090.01016.49
7.2.290.0130.01016.52
7.2.130.0030.01216.93
7.2.120.0070.00416.78
7.2.110.0030.00816.65
7.2.100.0070.01017.07
7.2.90.0030.01016.93
7.2.80.0000.01316.91
7.2.70.0030.01317.16
7.2.60.0060.01016.95
7.2.50.0040.01116.72
7.2.40.0040.00817.16
7.2.30.0060.00316.91
7.2.20.0060.00916.64
7.2.10.0040.01116.98
7.2.00.0060.00718.36
7.1.250.0120.00015.82
7.1.100.0030.01317.95
7.1.70.0000.00817.07
7.1.60.0030.00717.18
7.1.50.0120.00916.55
7.1.00.0070.07322.51
7.0.200.0030.01016.93
7.0.140.0000.07722.21
7.0.60.0170.07719.96
7.0.50.0100.03317.90
7.0.40.0130.06720.30
7.0.30.0330.07320.26
7.0.20.0230.05320.10
7.0.10.0170.07720.05
7.0.00.0100.07320.23
5.6.210.0100.07320.48
5.6.200.0070.05018.27
5.6.190.0070.08720.47
5.6.180.0070.04320.63
5.6.170.0370.07020.56
5.6.160.0070.08720.53
5.6.150.0070.08018.16
5.6.140.0130.07018.24
5.6.130.0070.07318.24
5.6.120.0030.05021.02
5.6.110.0130.07721.03
5.6.100.0170.05721.14
5.6.90.0130.05320.98
5.6.80.0130.06020.41
5.5.350.3230.04020.43
5.5.340.0070.07717.94
5.5.330.0070.05020.31
5.5.320.0200.04320.27
5.5.310.0370.07020.21
5.5.300.0170.07018.08
5.5.290.0000.09317.95
5.5.280.0100.07020.80
5.5.270.0100.08720.76
5.5.260.0170.06320.84
5.5.250.0030.06720.58
5.5.240.0030.07320.27
5.4.450.0830.04319.28
5.4.440.0170.04746.75
5.4.430.0600.03340.27
5.4.420.0200.04338.20
5.4.410.0200.04336.48
5.4.400.0430.04333.67
5.4.390.0270.04031.64
5.4.380.0300.04018.62
5.4.370.0370.05318.57
5.4.360.0170.06018.82
5.4.350.0200.07018.47
5.4.340.0130.05318.71
5.4.320.0050.04412.50
5.4.310.0080.03712.50
5.4.300.0100.04712.51
5.4.290.0080.05212.50
5.4.280.0090.04712.39
5.4.270.0040.05212.39
5.4.260.0090.05212.39
5.4.250.0120.04812.40
5.4.240.0090.04912.39
5.4.230.0070.05412.39
5.4.220.0080.05112.39
5.4.210.0060.05112.39
5.4.200.0100.04912.39
5.4.190.0090.04812.38
5.4.180.0120.04712.39
5.4.170.0070.05212.39
5.4.160.0080.04812.39
5.4.150.0110.04412.39
5.4.140.0060.05212.07
5.4.130.0090.04512.06
5.4.120.0080.05012.02
5.4.110.0070.05112.01
5.4.100.0120.04212.02
5.4.90.0050.05212.01
5.4.80.0070.05112.02
5.4.70.0060.04912.01
5.4.60.0080.04912.01
5.4.50.0090.05112.01
5.4.40.0090.04612.00
5.4.30.0070.04812.00
5.4.20.0060.05012.00
5.4.10.0120.04311.99
5.4.00.0080.04811.48
5.3.290.0110.03412.80
5.3.280.0090.04912.71
5.3.270.0090.04912.73
5.3.260.0060.04312.72
5.3.250.0060.04512.72
5.3.240.0090.03812.72
5.3.230.0080.03712.71
5.3.220.0120.03612.68
5.3.210.0110.03712.68
5.3.200.0050.03812.68
5.3.190.0090.03712.68
5.3.180.0060.04112.67
5.3.170.0090.03812.67
5.3.160.0100.04412.67
5.3.150.0090.04912.68
5.3.140.0110.04612.66
5.3.130.0080.05212.65
5.3.120.0070.05312.66
5.3.110.0070.05412.66
5.3.100.0050.05112.12
5.3.90.0110.04612.11
5.3.80.0070.05012.09
5.3.70.0090.04612.09
5.3.60.0120.04512.09
5.3.50.0110.04512.02
5.3.40.0110.04512.02
5.3.30.0060.04911.98
5.3.20.0090.04511.77
5.3.10.0070.05011.73
5.3.00.0050.05411.72
5.2.170.0060.0429.21
5.2.160.0070.0419.21
5.2.150.0090.0389.21
5.2.140.0060.0419.21
5.2.130.0070.0399.18
5.2.120.0130.0349.18
5.2.110.0070.0399.18
5.2.100.0080.0379.18
5.2.90.0070.0409.18
5.2.80.0050.0449.18
5.2.70.0090.0399.17
5.2.60.0080.0409.13
5.2.50.0080.0449.10
5.2.40.0070.0369.07
5.2.30.0090.0389.05
5.2.20.0060.0389.04
5.2.10.0070.0358.94
5.2.00.0070.0408.81
5.1.60.0050.0358.09
5.1.50.0050.0508.09
5.1.40.0060.0368.06
5.1.30.0060.0418.42
5.1.20.0060.0358.43
5.1.10.0050.0448.17
5.1.00.0070.0378.17
5.0.50.0050.0316.64
5.0.40.0050.0306.50
5.0.30.0070.0586.31
5.0.20.0100.0396.28
5.0.10.0050.0266.26
5.0.00.0070.0366.25
4.4.90.0070.0184.78
4.4.80.0030.0224.76
4.4.70.0050.0194.75
4.4.60.0020.0224.75
4.4.50.0040.0224.77
4.4.40.0020.0364.71
4.4.30.0050.0194.76
4.4.20.0040.0214.84
4.4.10.0060.0194.85
4.4.00.0010.0284.76
4.3.110.0030.0224.67
4.3.100.0050.0204.66
4.3.90.0030.0244.63
4.3.80.0020.0334.58
4.3.70.0060.0204.63
4.3.60.0080.0184.63
4.3.50.0040.0184.63
4.3.40.0040.0254.54
4.3.30.0010.0183.30
4.3.20.0040.0163.28
4.3.10.0040.0163.23
4.3.00.0070.01331.63

preferences:
50.65 ms | 401 KiB | 5 Q