3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $bar) { } 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.10.0130.00319.40
8.3.140.0110.00416.68
8.3.130.0030.00518.35
8.3.120.0090.00619.07
8.3.110.0100.01020.94
8.3.100.0050.00316.78
8.3.90.0080.00026.77
8.3.80.0080.00416.48
8.3.70.0070.00716.58
8.3.60.0110.00716.63
8.3.50.0130.00817.33
8.3.40.0100.01018.67
8.3.30.0120.00318.67
8.3.20.0040.00421.69
8.3.10.0080.00021.86
8.3.00.0060.00319.66
8.2.260.0070.00716.38
8.2.250.0140.00716.91
8.2.240.0120.00317.18
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0120.00016.50
8.2.190.0070.01316.63
8.2.180.0210.00025.92
8.2.170.0040.01118.83
8.2.160.0030.01222.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00626.16
8.2.120.0030.00521.18
8.2.110.0100.00521.67
8.2.100.0060.01019.24
8.2.90.0110.00818.42
8.2.80.0150.00418.51
8.2.70.0090.00533.71
8.2.60.0100.00528.16
8.2.50.0100.00333.71
8.2.40.0080.00434.33
8.2.30.0070.00634.03
8.2.20.0060.00533.71
8.2.10.0080.00533.79
8.2.00.0090.00433.75
8.1.310.0050.00316.73
8.1.300.0090.00017.71
8.1.290.0000.00830.84
8.1.280.0070.00725.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00319.89
8.1.230.0050.00818.74
8.1.220.0090.00318.33
8.1.210.0060.00419.16
8.1.200.0090.00333.40
8.1.190.0110.00333.46
8.1.180.0080.00833.65
8.1.170.0120.00533.75
8.1.160.0090.00733.82
8.1.150.0080.00734.38
8.1.140.0090.00733.53
8.1.130.0080.00633.88
8.1.120.0080.00633.44
8.1.110.0110.00633.46
8.1.100.0070.00828.09
8.1.90.0090.00633.47
8.1.80.0080.00533.51
8.1.70.0070.00533.49
8.1.60.0100.00433.60
8.1.50.0120.00333.48
8.1.40.0090.00530.33
8.1.30.0080.00530.37
8.1.20.0110.00230.35
8.1.10.0110.00230.32
8.1.00.0090.00330.25
8.0.300.0110.00518.30
8.0.290.0120.00433.23
8.0.280.0090.00533.63
8.0.270.0090.00433.18
8.0.260.0090.00433.24
8.0.250.0070.00833.31
8.0.240.0100.00333.26
8.0.230.0070.00633.31
8.0.220.0110.00233.20
8.0.210.0100.00333.18
8.0.200.0090.00433.20
8.0.190.0100.00333.23
8.0.180.0090.00433.25
8.0.170.0050.00629.92
8.0.160.0090.00329.91
8.0.150.0080.00429.88
8.0.140.0080.00429.90
8.0.130.0080.00329.23
8.0.120.0070.00529.90
8.0.110.0060.00427.76
8.0.100.0050.00727.68
8.0.90.0050.00627.76
8.0.80.0070.00627.70
8.0.70.0070.00427.69
8.0.60.0060.00527.74
8.0.50.0060.00627.72
8.0.30.0070.00723.46
8.0.20.0120.00425.11
8.0.10.0090.00626.27
8.0.00.0100.00524.79
7.4.330.0090.00232.49
7.4.320.0100.00433.00
7.4.300.0060.00633.37
7.4.290.0080.00433.42
7.4.280.0090.00529.66
7.4.270.0060.00526.16
7.4.260.0090.00329.67
7.4.250.0060.00629.99
7.4.240.0060.00627.78
7.4.230.0050.00727.44
7.4.220.0050.00627.74
7.4.210.0070.00725.89
7.4.200.0060.00427.78
7.4.190.0070.00529.75
7.4.180.0080.00429.74
7.4.160.0070.00724.02
7.4.150.0080.00526.12
7.4.140.0090.00623.08
7.4.130.0090.00524.71
7.4.120.0080.00721.93
7.4.110.0100.00724.66
7.4.100.0070.00724.74
7.4.90.0090.00624.63
7.4.80.0110.00625.05
7.4.70.0100.00524.64
7.4.60.0100.00624.69
7.4.50.0120.00524.64
7.4.40.0090.00724.55
7.4.30.0100.00625.80
7.4.20.0100.00723.73
7.4.10.0110.00423.72
7.4.00.0070.00822.29
7.3.330.0090.00428.88
7.3.320.0110.00328.85
7.3.310.0120.00427.27
7.3.300.0130.00227.22
7.3.290.0100.00427.27
7.3.280.0110.00525.71
7.3.270.0110.00625.72
7.3.260.0130.00422.86
7.3.250.0110.00725.78
7.3.240.0120.00522.87
7.3.230.0100.00624.56
7.3.220.0100.00625.70
7.3.210.0130.00624.57
7.3.200.0110.00724.51
7.3.190.0150.00424.48
7.3.180.0100.00924.59
7.3.170.0140.00424.56
7.3.160.0140.00524.52
7.3.150.0120.00625.68
7.3.140.0150.00523.65
7.3.130.0130.00823.62
7.3.120.0110.00821.92
7.3.110.0100.00821.33
7.3.100.0090.00720.85
7.3.90.0100.00720.98
7.3.80.0110.00520.40
7.3.70.0090.00719.70
7.3.60.0090.00718.99
7.3.50.0090.00718.68
7.3.40.0090.00718.70
7.3.30.0110.00718.69
7.3.20.0150.00719.40
7.3.10.0150.00719.34
7.3.00.0110.00619.11
7.2.340.0110.00525.99
7.2.330.0100.00824.57
7.2.320.0110.00624.58
7.2.310.0130.00624.53
7.2.300.0180.00624.55
7.2.290.0140.00524.53
7.2.280.0130.00725.70
7.2.270.0140.00623.67
7.2.260.0130.00823.62
7.2.250.0100.00822.09
7.2.240.0100.00921.50
7.2.230.0130.00620.95
7.2.220.0100.00820.94
7.2.210.0090.00920.55
7.2.200.0110.00819.86
7.2.190.0110.00719.04
7.2.180.0100.00818.81
7.2.170.0110.00818.82
7.2.160.0090.00819.03
7.2.150.0130.00719.76
7.2.140.0130.00719.61
7.2.130.0120.00819.71
7.2.120.0150.00719.65
7.2.110.0110.00819.70
7.2.100.0130.00719.63
7.2.90.0130.00719.68
7.2.80.0130.00719.63
7.2.70.0120.00719.69
7.2.60.0130.00719.52
7.2.50.0110.00719.51
7.2.40.0180.00919.61
7.2.30.0180.00819.60
7.2.20.0150.00819.57
7.2.10.0170.00719.65
7.2.00.0220.00819.56
7.1.330.0110.00621.28
7.1.320.0120.00620.76
7.1.310.0140.00620.19
7.1.300.0140.00618.58
7.1.290.0170.00518.61
7.1.280.0120.00718.42
7.1.270.0140.00918.47
7.1.260.0160.00718.50
7.1.250.0160.00418.65
7.1.240.0170.00818.64
7.1.230.0190.00718.62
7.1.220.0140.00818.67
7.1.210.0130.00818.62
7.1.200.0130.00818.56
7.1.190.0150.00818.64
7.1.180.0130.00818.69
7.1.170.0150.00718.71
7.1.160.0150.00718.56
7.1.150.0170.00818.62
7.1.140.0210.00618.56
7.1.130.0170.00818.55
7.1.120.0170.00918.61
7.1.110.0200.00718.56
7.1.100.0200.00718.54
7.1.90.0210.00618.51
7.1.80.0170.00618.57
7.1.70.0170.00818.45
7.1.60.0240.00519.41
7.1.50.0190.00819.44
7.1.40.0160.00619.34
7.1.30.0240.00719.41
7.1.20.0170.00719.32
7.1.10.0190.00718.50
7.1.00.0140.00718.32
7.0.330.0130.00618.34
7.0.320.0140.00523.35
7.0.310.0140.00723.25
7.0.300.0140.00523.30
7.0.290.0140.00723.23
7.0.280.0150.00623.30
7.0.270.0140.00723.28
7.0.260.0140.00623.34
7.0.250.0150.00623.38
7.0.240.0150.00523.38
7.0.230.0130.00523.35
7.0.220.0120.00623.32
7.0.210.0160.00523.32
7.0.200.0130.00523.28
7.0.190.0110.00623.30
7.0.180.0120.00523.35
7.0.170.0120.00523.36
7.0.160.0110.00723.31
7.0.150.0140.00323.35
7.0.140.0120.00623.33
7.0.130.0120.00723.34
7.0.120.0140.00723.37
7.0.110.0130.00823.27
7.0.100.0130.00623.26
7.0.90.0140.00723.28
7.0.80.0130.00523.23
7.0.70.0120.00923.25
7.0.60.0120.00723.32
7.0.50.0130.00523.24
7.0.40.0130.00723.32
7.0.30.0110.00823.36
7.0.20.0170.00523.30
7.0.10.0130.00523.30
7.0.00.0140.00623.27
5.6.400.0100.01118.50
5.6.390.0130.00618.48
5.6.380.0120.00918.43
5.6.370.0120.00823.20
5.6.360.0110.00723.20
5.6.350.0120.00623.19
5.6.340.0110.00723.25
5.6.330.0110.00723.25
5.6.320.0110.00823.28
5.6.310.0110.00623.24
5.6.300.0130.00423.17
5.6.290.0110.00623.22
5.6.280.0110.00623.18
5.6.270.0120.00623.22
5.6.260.0100.00923.26
5.6.250.0100.00723.16
5.6.240.0100.00623.23
5.6.230.0120.00523.22
5.6.220.0110.00723.25
5.6.210.0110.00723.23
5.6.200.0160.00323.20
5.6.190.0120.00623.30
5.6.180.0110.00623.30
5.6.170.0110.00623.30
5.6.160.0110.00723.29
5.6.150.0090.00823.34
5.6.140.0110.00723.32
5.6.130.0090.00823.25
5.6.120.0140.00423.25
5.6.110.0120.00723.25
5.6.100.0130.00723.21
5.6.90.0120.00723.23
5.6.80.0100.00723.22
5.6.70.0110.00823.26
5.6.60.0140.00523.27
5.6.50.0140.00623.20
5.6.40.0120.00623.25
5.6.30.0100.00923.19
5.6.20.0120.00623.15
5.6.10.0130.00723.18
5.6.00.0130.00723.19

preferences:
55.04 ms | 403 KiB | 5 Q