3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $callable; } class Bar { public function __invoke() { echo 'DO IT'; } } $foo = new Foo; $foo->callable = [Bar::class, '__invoke']; ($foo->callable)();

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.01116.48
8.3.50.0160.01122.05
8.3.40.0070.00718.92
8.3.30.0070.00718.97
8.3.20.0030.00520.34
8.3.10.0000.00923.39
8.3.00.0070.00317.50
8.2.180.0040.01118.43
8.2.170.0110.01122.96
8.2.160.0100.00720.35
8.2.150.0030.00524.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0080.00017.25
8.2.110.0080.00420.46
8.2.100.0090.00318.04
8.2.90.0070.00019.04
8.2.80.0040.00417.97
8.2.70.0000.00917.37
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0040.00421.03
8.2.30.0000.00720.69
8.2.20.0000.00717.75
8.2.10.0000.00818.05
8.2.00.0040.00417.91
8.1.280.0100.00725.92
8.1.270.0080.00024.66
8.1.260.0030.00626.35
8.1.250.0050.00528.09
8.1.240.0060.00322.61
8.1.230.0090.00319.44
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.23
8.1.190.0030.00617.23
8.1.180.0070.00018.10
8.1.170.0000.00820.32
8.1.160.0040.00421.95
8.1.150.0040.00418.82
8.1.140.0050.00319.52
8.1.130.0030.00317.59
8.1.120.0040.00417.25
8.1.110.0040.00417.32
8.1.100.0000.00717.42
8.1.90.0030.00517.41
8.1.80.0030.00617.39
8.1.70.0000.00717.45
8.1.60.0000.00817.54
8.1.50.0040.00417.49
8.1.40.0080.00017.55
8.1.30.0050.00317.65
8.1.20.0000.00717.66
8.1.10.0090.00017.58
8.1.00.0070.00017.48
8.0.300.0040.00418.84
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0070.00017.26
8.0.260.0000.00617.20
8.0.250.0040.00416.98
8.0.240.0000.00816.96
8.0.230.0070.00016.96
8.0.220.0050.00216.89
8.0.210.0000.00816.85
8.0.200.0030.00316.96
8.0.190.0080.00016.86
8.0.180.0080.00016.82
8.0.170.0040.00416.93
8.0.160.0040.00416.92
8.0.150.0030.00516.94
8.0.140.0000.00716.74
8.0.130.0030.00313.40
8.0.120.0060.00316.84
8.0.110.0020.00516.94
8.0.100.0040.00416.94
8.0.90.0040.00416.72
8.0.80.0040.01116.96
8.0.70.0050.00316.79
8.0.60.0050.00316.74
8.0.50.0050.00516.75
8.0.30.0100.01017.09
8.0.20.0080.01017.40
8.0.10.0040.00416.91
8.0.00.0100.00816.68
7.4.330.0060.00015.08
7.4.320.0030.00316.54
7.4.300.0000.00616.44
7.4.290.0000.00816.61
7.4.280.0080.00016.40
7.4.270.0030.00316.59
7.4.260.0040.00416.42
7.4.250.0000.00716.57
7.4.240.0010.00616.60
7.4.230.0000.00816.72
7.4.220.0070.01116.72
7.4.210.0040.01116.50
7.4.200.0000.00716.61
7.4.160.0170.00016.78
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0070.01516.60
7.4.120.0110.00616.60
7.4.110.0030.01616.52
7.4.100.0040.01416.53
7.4.90.0090.00916.38
7.4.80.0140.00319.39
7.4.70.0100.00616.50
7.4.60.0030.01616.63
7.4.50.0060.00316.58
7.4.40.0070.01116.58
7.4.30.0100.00716.48
7.4.00.0030.01014.99
7.3.330.0000.00513.14
7.3.320.0030.00313.37
7.3.310.0070.00016.34
7.3.300.0070.00016.32
7.3.290.0050.01216.28
7.3.280.0120.00816.28
7.3.270.0100.00717.40
7.3.260.0120.00616.47
7.3.240.0100.00716.39
7.3.230.0080.00816.39
7.3.210.0120.00916.50
7.3.200.0100.00716.40
7.3.190.0110.01116.42
7.3.180.0130.00316.48
7.3.170.0090.01216.27
7.3.160.0090.00616.43
7.2.330.0070.01316.66
7.2.320.0180.00416.73
7.2.310.0030.01216.38
7.2.300.0100.00616.76
7.2.290.0070.01416.82
7.2.60.0130.00316.85
7.2.00.0060.00619.09
7.1.200.0000.01015.81
7.1.100.0080.00017.89
7.1.70.0070.00717.10
7.1.60.0100.01419.11
7.1.50.0120.00916.91
7.1.00.0100.06722.42
7.0.200.0110.00716.45
7.0.60.0070.08719.87
7.0.50.0030.08017.89
7.0.40.0030.04720.04
7.0.30.0570.07320.25
7.0.20.0170.04320.23
7.0.10.0300.08020.12
7.0.00.0070.04020.08
5.6.280.0030.04321.11
5.6.210.0030.04020.48
5.6.200.0100.08318.18
5.6.190.0070.04020.55
5.6.180.0370.07720.61
5.6.170.0500.06720.56
5.6.160.0000.06320.44
5.6.150.0100.05718.18
5.6.140.0030.05318.29
5.6.130.0070.06018.15
5.6.120.0030.09020.99
5.6.110.0170.06021.11
5.6.100.0100.03721.04
5.6.90.0130.04320.97
5.6.80.0130.07320.45
5.6.70.0430.06320.28
5.5.350.0170.03020.33
5.5.340.0130.07718.03
5.5.330.0100.07020.21
5.5.320.0200.07020.46
5.5.310.0230.07020.29
5.5.300.0030.05317.96
5.5.290.0070.07718.02
5.5.280.0200.03720.88
5.5.270.0070.08320.73
5.5.260.0070.05320.79
5.5.250.0100.07020.62
5.5.240.0000.08320.35
5.4.450.0970.03719.39
5.4.440.0870.06019.32
5.4.430.0530.06019.32
5.4.420.0530.05719.57
5.4.410.0630.06319.07
5.4.400.0670.04718.97
5.4.390.0700.07019.25
5.4.380.0570.05719.15
5.4.370.0600.05319.37
5.4.360.0800.04019.24
5.4.350.0730.05319.27
5.4.340.0530.06719.23
5.4.320.0900.05319.15
5.4.310.0830.04718.84
5.4.300.0630.05019.14
5.4.290.0630.04719.28
5.4.280.0770.04019.05
5.4.270.0600.05018.84
5.4.260.0600.05019.01
5.4.250.1000.05019.29
5.4.240.0730.06019.12
5.4.230.0730.06018.97
5.4.220.0700.06719.05
5.4.210.0730.04318.83
5.4.200.0730.05318.86
5.4.190.0630.05319.22
5.4.180.0600.05319.24
5.4.170.0830.04319.36
5.4.160.0870.04319.04
5.4.150.0800.05718.85
5.4.140.0800.05016.73
5.4.130.0870.04316.41
5.4.120.0670.04316.72
5.4.110.0600.07316.58
5.4.100.0600.05016.66
5.4.90.0530.05316.62
5.4.80.0500.05716.63
5.4.70.0630.04316.23
5.4.60.0770.05016.41
5.4.50.0700.04316.21
5.4.40.0600.05016.16
5.4.30.0770.06016.51
5.4.20.0770.04716.23
5.4.10.0800.05716.49
5.4.00.0730.04715.93

preferences:
53.44 ms | 401 KiB | 5 Q