3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo() { print "\nfoo"; } } $x = new x(); $test = array($x, "foo"); echo is_callable($test) ? 'This is a callable' : 'This is not a callable'; echo "\n"; echo is_array($test) ? 'This is an array' : 'This is not an array'; $test();

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.0040.01118.43
8.3.50.0120.00621.18
8.3.40.0090.00918.89
8.3.30.0090.00618.72
8.3.20.0040.00420.37
8.3.10.0040.00423.65
8.3.00.0000.00822.58
8.2.180.0150.00016.50
8.2.170.0100.01022.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00817.50
8.2.110.0110.00019.12
8.2.100.0090.00317.63
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0000.00818.03
8.2.50.0060.00318.07
8.2.40.0060.00321.04
8.2.30.0070.00018.13
8.2.20.0020.00517.64
8.2.10.0040.00418.09
8.2.00.0040.00418.07
8.1.280.0040.01825.92
8.1.270.0040.00420.32
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00723.92
8.1.230.0120.00017.64
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0080.00017.22
8.1.180.0030.00518.10
8.1.170.0000.00818.70
8.1.160.0070.00022.01
8.1.150.0000.00718.88
8.1.140.0000.00817.43
8.1.130.0050.00217.63
8.1.120.0000.00717.30
8.1.110.0070.00017.52
8.1.100.0070.00017.38
8.1.90.0040.00417.43
8.1.80.0070.00017.42
8.1.70.0040.00417.43
8.1.60.0030.00517.50
8.1.50.0080.00017.57
8.1.40.0040.00417.52
8.1.30.0060.00317.67
8.1.20.0000.00717.61
8.1.10.0000.00717.53
8.1.00.0080.00017.51
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.47
8.0.270.0030.00517.26
8.0.260.0000.00617.32
8.0.250.0040.00416.93
8.0.240.0030.00316.99
8.0.230.0040.00416.94
8.0.220.0030.00316.91
8.0.210.0030.00316.80
8.0.200.0050.00216.96
8.0.190.0000.00816.86
8.0.180.0040.00416.89
8.0.170.0030.00516.84
8.0.160.0040.00416.85
8.0.150.0030.00316.81
8.0.140.0030.00616.73
8.0.130.0000.00513.28
8.0.120.0040.00416.86
8.0.110.0050.00216.82
8.0.100.0090.00016.86
8.0.90.0000.00716.92
8.0.80.0060.01116.92
8.0.70.0050.00216.91
8.0.60.0070.00016.78
8.0.50.0000.00716.76
8.0.30.0090.01217.19
8.0.20.0130.00917.40
8.0.10.0000.00716.98
8.0.00.0100.01016.80
7.4.330.0050.00015.08
7.4.320.0060.00016.43
7.4.300.0000.00616.61
7.4.290.0000.00616.64
7.4.280.0000.00716.41
7.4.270.0000.00716.51
7.4.260.0040.00416.54
7.4.250.0080.00016.56
7.4.240.0030.00416.55
7.4.230.0000.00816.34
7.4.220.0100.01316.49
7.4.210.0040.01716.50
7.4.200.0040.00416.39
7.4.160.0060.00916.54
7.4.150.0110.00717.40
7.4.140.0120.00717.86
7.4.130.0050.01216.54
7.4.120.0110.00716.57
7.4.110.0090.00916.57
7.4.100.0150.00316.47
7.4.90.0150.00716.45
7.4.80.0110.00719.39
7.4.70.0040.01416.29
7.4.60.0060.00916.45
7.4.50.0030.00616.28
7.4.40.0080.00916.64
7.4.30.0160.00616.46
7.4.00.0030.00714.74
7.3.330.0030.00313.08
7.3.320.0050.00013.28
7.3.310.0070.00016.20
7.3.300.0000.00616.26
7.3.290.0040.00416.16
7.3.280.0080.00716.31
7.3.270.0120.01217.40
7.3.260.0070.01016.34
7.3.250.0090.00916.23
7.3.240.0070.01016.29
7.3.230.0120.00416.39
7.3.210.0030.01416.53
7.3.200.0150.00419.39
7.3.190.0090.00916.31
7.3.180.0170.00716.50
7.3.170.0060.01216.41
7.3.160.0100.00616.38
7.3.120.0070.01014.68
7.3.110.0060.00615.02
7.3.100.0140.00014.96
7.3.90.0000.01214.89
7.3.80.0030.01314.89
7.3.70.0100.00314.84
7.3.60.0110.00414.78
7.3.50.0070.00714.73
7.3.40.0030.01014.91
7.3.30.0060.00914.66
7.3.20.0070.01116.42
7.3.10.0050.01016.68
7.3.00.0070.00716.54
7.2.330.0100.01016.80
7.2.320.0200.00316.74
7.2.310.0130.00416.79
7.2.300.0060.01016.76
7.2.290.0110.00816.77
7.2.240.0050.00514.92
7.2.230.0030.01015.18
7.2.220.0040.00714.77
7.2.210.0070.01115.26
7.2.200.0090.00615.33
7.2.190.0060.00915.00
7.2.180.0030.01315.16
7.2.170.0070.00715.13
7.2.160.0060.00615.13
7.2.150.0000.01516.72
7.2.140.0090.00317.04
7.2.130.0050.00816.96
7.2.120.0050.00816.89
7.2.110.0070.00716.96
7.2.100.0080.00316.69
7.2.90.0050.01016.85
7.2.80.0020.01216.87
7.2.70.0100.00316.92
7.2.60.0100.00717.01
7.2.50.0030.01317.05
7.2.40.0060.00716.78
7.2.30.0080.00517.01
7.2.20.0030.00716.81
7.2.10.0070.00917.07
7.2.00.0030.00817.82
7.1.330.0030.00615.91
7.1.320.0080.00415.83
7.1.310.0100.00315.50
7.1.300.0000.01015.89
7.1.290.0070.00715.60
7.1.280.0000.01415.79
7.1.270.0130.00315.99
7.1.260.0070.00715.75
7.1.250.0050.00815.76
7.1.100.0030.00617.75
7.1.70.0070.00317.16
7.1.60.0070.01720.03
7.1.50.0070.01616.80
7.1.00.0030.07722.57
7.0.200.0390.00014.70
7.0.60.0100.07320.03
7.0.50.0100.06017.79
7.0.40.0070.09020.30
7.0.30.0400.07320.23
7.0.20.0300.07720.20
7.0.10.0100.05320.09
7.0.00.0170.07720.05
5.6.280.0000.06320.91
5.6.210.0070.07720.73
5.6.200.0030.04018.18
5.6.190.0170.07720.52
5.6.180.0270.09020.68
5.6.170.0300.03720.51
5.6.160.0030.08320.46
5.6.150.0030.05718.22
5.6.140.0130.06318.15
5.6.130.0070.08318.17
5.6.120.0100.06721.15
5.6.110.0030.04720.98
5.6.100.0030.04321.13
5.6.90.0000.07320.94
5.6.80.0130.06320.29
5.6.70.4430.04320.42
5.5.350.0070.05720.43
5.5.340.0170.03017.94
5.5.330.0070.08320.32
5.5.320.0430.06320.35
5.5.310.0230.05020.28
5.5.300.0030.04017.95
5.5.290.0070.06717.92
5.5.280.0070.07320.73
5.5.270.0000.04320.84
5.5.260.0100.08320.87
5.5.250.0070.07720.48
5.5.240.0300.07320.07
5.4.450.0700.05319.64
5.4.440.0700.06019.59
5.4.430.0800.05019.41
5.4.420.1070.04719.68
5.4.410.1200.04719.23
5.4.400.0830.05018.96
5.4.390.0930.07019.27
5.4.380.0970.04019.16
5.4.370.1600.05719.05
5.4.360.1130.04718.85
5.4.350.0870.05318.84
5.4.340.0870.06718.95
5.4.320.0700.05319.36
5.4.310.1100.05019.08
5.4.300.1130.05019.09
5.4.290.1100.05318.84
5.4.280.0770.05319.25
5.4.270.0700.06019.09
5.4.260.0730.06319.25
5.4.250.0700.06718.82
5.4.240.0900.04019.36
5.4.230.0630.06719.27
5.4.220.1070.04319.27
5.4.210.1030.07319.04
5.4.200.0670.04716.94
5.4.190.1700.04318.96
5.4.180.1170.04318.85
5.4.170.1030.06019.13
5.4.160.1200.06018.84
5.4.150.0770.06718.96
5.4.140.1070.06016.56
5.4.130.1000.05316.73
5.4.120.0970.05316.50
5.4.110.0900.04716.40
5.4.100.1030.05016.30
5.4.90.1000.05316.30
5.4.80.1230.04316.39
5.4.70.0730.05016.28
5.4.60.0270.05716.53
5.4.50.0000.03316.55
5.4.40.0000.04316.30
5.4.30.0070.03016.51
5.4.20.0200.04016.16

preferences:
36.34 ms | 401 KiB | 5 Q