3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actions = array( '*' => 'multiply', '/' => 'divide' ); function dontSwitch($option) { return call_user_func($actions[$option]); } function multiply() { return 'fuuuuu'; } function divide() { return 'dump'; } echo dontSwitch('*');

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.0110.01118.32
8.3.50.0130.00321.92
8.3.40.0100.00319.02
8.3.30.0110.00319.14
8.3.20.0040.00420.21
8.3.10.0070.00021.95
8.3.00.0040.00422.57
8.2.180.0090.00916.75
8.2.170.0100.00722.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0090.00624.66
8.2.130.0000.00826.16
8.2.120.0050.00319.36
8.2.110.0060.00322.03
8.2.100.0060.00619.51
8.2.90.0040.00419.08
8.2.80.0060.00319.76
8.2.70.0030.00517.75
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0000.00818.03
8.2.30.0000.00817.92
8.2.20.0000.00717.64
8.2.10.0000.00817.74
8.2.00.0040.00417.62
8.1.280.0080.00625.92
8.1.270.0050.00322.02
8.1.260.0110.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00023.97
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00917.41
8.1.180.0080.00018.10
8.1.170.0030.00618.51
8.1.160.0070.00022.00
8.1.150.0040.00418.57
8.1.140.0030.00617.38
8.1.130.0000.00717.67
8.1.120.0000.00717.42
8.1.110.0050.00317.32
8.1.100.0000.00817.41
8.1.90.0040.00417.36
8.1.80.0030.00617.37
8.1.70.0030.00317.40
8.1.60.0030.00617.53
8.1.50.0040.00417.53
8.1.40.0000.00817.43
8.1.30.0060.00317.64
8.1.20.0050.00317.54
8.1.10.0050.00317.49
8.1.00.0000.01017.39
8.0.300.0040.00418.77
8.0.290.0050.00317.05
8.0.280.0030.00318.38
8.0.270.0030.00317.06
8.0.260.0000.00618.36
8.0.250.0030.00316.91
8.0.240.0000.00716.92
8.0.230.0070.00016.95
8.0.220.0040.00416.90
8.0.210.0030.00316.93
8.0.200.0000.00716.95
8.0.190.0030.00516.81
8.0.180.0020.00516.94
8.0.170.0040.00416.92
8.0.160.0000.00716.76
8.0.150.0080.00016.93
8.0.140.0030.00316.88
8.0.130.0050.00013.29
8.0.120.0040.00416.82
8.0.110.0040.00416.77
8.0.100.0040.00416.85
8.0.90.0040.00416.88
8.0.80.0060.01216.77
8.0.70.0050.00216.74
8.0.60.0040.00416.73
8.0.50.0040.00416.88
8.0.30.0180.00817.00
8.0.20.0130.00517.40
8.0.10.0070.00016.88
8.0.00.0100.01116.95
7.4.330.0070.00015.00
7.4.320.0040.00416.34
7.4.300.0000.00716.66
7.4.290.0040.00416.50
7.4.280.0000.00616.39
7.4.270.0070.00016.59
7.4.260.0030.00316.43
7.4.250.0030.00516.55
7.4.240.0030.00516.45
7.4.230.0000.00716.43
7.4.220.0030.01316.63
7.4.210.0050.01016.52
7.4.200.0040.00416.52
7.4.190.0030.00316.54
7.4.160.0080.00816.54
7.4.150.0070.01417.40
7.4.140.0070.01017.86
7.4.130.0070.01016.62
7.4.120.0130.00516.64
7.4.110.0070.01016.36
7.4.100.0060.01216.69
7.4.90.0070.01016.57
7.4.80.0080.01119.39
7.4.70.0080.00816.42
7.4.60.0030.01416.64
7.4.50.0060.00316.34
7.4.40.0000.01622.77
7.4.30.0100.00716.72
7.4.00.0080.00414.73
7.3.330.0050.00013.26
7.3.320.0000.00613.13
7.3.310.0030.00316.21
7.3.300.0050.00216.35
7.3.290.0070.00716.31
7.3.280.0060.01016.31
7.3.270.0090.01517.40
7.3.260.0090.00916.55
7.3.250.0050.01216.38
7.3.240.0040.01416.42
7.3.230.0160.00716.39
7.3.210.0100.00716.24
7.3.200.0140.00819.39
7.3.190.0070.01116.36
7.3.180.0120.00916.27
7.3.170.0070.01016.38
7.3.160.0060.01016.56
7.3.120.0030.00614.64
7.3.10.0000.01316.55
7.3.00.0040.00416.40
7.2.330.0090.00916.37
7.2.320.0180.01816.68
7.2.310.0060.01016.81
7.2.300.0110.01116.66
7.2.290.0090.00616.67
7.2.130.0130.00616.69
7.2.120.0030.01316.46
7.2.110.0110.00316.59
7.2.100.0060.01016.48
7.2.90.0090.00616.71
7.2.80.0070.00716.60
7.2.70.0040.01116.46
7.2.60.0100.00216.53
7.2.50.0040.01016.79
7.2.40.0060.01316.44
7.2.30.0060.00616.57
7.2.20.0030.01316.79
7.2.10.0110.00816.81
7.2.00.0140.00316.89
7.1.250.0070.00415.27
7.1.200.0060.00615.77
7.1.70.0040.00416.81
7.1.60.0140.01119.82
7.1.50.0040.01816.55
7.1.00.0100.07322.54
7.0.200.0040.00716.64
7.0.140.0000.07722.00
7.0.60.0130.06319.95
7.0.50.0070.04017.85
7.0.40.0030.04320.25
7.0.30.0300.05320.09
7.0.20.0230.04020.08
7.0.10.0230.08320.23
7.0.00.0130.07020.29
5.6.280.0070.06721.11
5.6.210.0170.03720.75
5.6.200.0030.04018.19
5.6.190.0000.04720.63
5.6.180.3600.04020.49
5.6.170.0370.04720.45
5.6.160.0070.08320.57
5.6.150.0000.04318.18
5.6.140.0070.03718.15
5.6.130.0070.04318.24
5.6.120.0070.05720.96
5.6.110.0070.08020.98
5.6.100.0070.06720.99
5.6.90.0070.05720.97
5.6.80.0100.06720.41
5.6.70.0230.03020.51
5.5.350.0030.07320.47
5.5.340.0030.07018.00
5.5.330.0030.04320.37
5.5.320.0270.08020.51
5.5.310.0370.06720.39
5.5.300.0030.07318.03
5.5.290.0030.08717.98
5.5.280.0230.05320.79
5.5.270.0030.04320.88
5.5.260.0100.06320.77
5.5.250.0100.08020.62
5.5.240.0100.03020.27
5.4.450.1000.06719.59
5.4.440.0030.06319.12
5.4.430.0070.06019.54
5.4.420.0130.05319.53
5.4.410.0170.05019.33
5.4.400.0870.00018.53
5.4.390.0630.00018.70
5.4.380.0300.05018.60
5.4.370.0370.04718.78
5.4.360.0330.05318.61
5.4.350.0300.05318.53
5.4.340.0400.04718.79
5.4.320.0090.04812.50
5.4.310.0050.04312.50
5.4.300.0080.03712.51
5.4.290.0060.04112.50
5.4.280.0070.03512.40
5.4.270.0100.06319.03
5.4.260.0130.06719.10
5.4.250.0270.05718.97
5.4.240.0100.06318.75
5.4.230.0170.05018.76
5.4.220.0030.06019.00
5.4.210.0070.06019.09
5.4.200.0170.06318.90
5.4.190.0100.05318.91
5.4.180.0070.07718.76
5.4.170.0070.06319.01
5.4.160.0100.05319.00
5.4.150.0100.07319.00
5.4.140.0070.05016.61
5.4.130.0100.07016.35
5.4.120.0230.05716.64
5.4.110.0070.05316.46
5.4.100.0170.06016.46
5.4.90.0070.05016.44
5.4.80.0100.05716.39
5.4.70.0130.04716.60
5.4.60.0100.05716.59
5.4.50.0200.05716.38
5.4.40.0000.05716.55
5.4.30.0030.07716.51
5.4.20.0030.05316.35
5.4.10.0130.06016.30
5.4.00.0100.05015.80
5.3.290.0050.04112.80
5.3.280.0130.04714.68
5.3.270.0130.06714.70
5.3.260.0070.05714.43
5.3.250.0170.05314.70
5.3.240.0170.04714.78
5.3.230.0170.06014.68
5.3.220.0100.07014.74
5.3.210.0130.07014.65
5.3.200.0100.05714.65
5.3.190.0030.06014.60
5.3.180.0070.07314.46
5.3.170.0200.05714.57
5.3.160.0170.05714.64
5.3.150.0070.06314.70
5.3.140.0230.04014.64
5.3.130.0070.07714.55
5.3.120.0070.06714.55
5.3.110.0130.05714.53
5.3.100.0170.06013.87
5.3.90.0100.05714.17
5.3.80.0070.05014.00
5.3.70.0100.05714.11
5.3.60.0270.05014.18
5.3.50.0070.05013.93
5.3.40.0070.05014.03
5.3.30.0100.06314.07
5.3.20.0130.05013.79
5.3.10.0070.05013.65
5.3.00.0170.06313.80
5.2.170.0000.04711.14
5.2.160.0100.04011.23
5.2.150.0030.06311.15
5.2.140.0070.05011.23
5.2.130.0070.05311.27
5.2.120.0130.03311.29
5.2.110.0170.03711.06
5.2.100.0130.03711.18
5.2.90.0070.05011.32
5.2.80.0030.04711.16
5.2.70.0100.04011.30
5.2.60.0030.05011.12
5.2.50.0170.04711.20
5.2.40.0170.04311.09
5.2.30.0070.04311.04
5.2.20.0000.05010.92
5.2.10.0130.04010.98
5.2.00.0170.05310.79
5.1.60.0100.03010.07
5.1.50.0130.03310.07
5.1.40.0030.0539.96
5.1.30.0030.04310.42
5.1.20.0070.04710.44
5.1.10.0130.03310.11
5.1.00.0130.03310.03
5.0.50.0170.0278.38
5.0.40.0070.0308.48
5.0.30.0030.0508.14
5.0.20.0100.0338.16
5.0.10.0030.0438.41
5.0.00.0030.0508.40
4.4.90.0030.0236.85
4.4.80.0030.0276.85
4.4.70.0130.0176.85
4.4.60.0070.0206.85
4.4.50.0030.0236.85
4.4.40.0000.0406.85
4.4.30.0070.0206.85
4.4.20.0070.0236.82
4.4.10.0030.0306.77
4.4.00.0030.0336.73
4.3.110.0070.0276.67
4.3.100.0030.0276.66
4.3.90.0070.0176.61
4.3.80.0030.0436.57
4.3.70.0170.0176.55
4.3.60.0000.0276.55
4.3.50.0070.0276.55
4.3.40.0070.0336.55
4.3.30.0000.0236.55
4.3.20.0030.0236.55
4.3.10.0030.0276.55
4.3.00.0000.0236.48

preferences:
41.94 ms | 401 KiB | 5 Q