3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo[] = array('id' => 1, 'title' => 'one'); $foo[] = array('id' => 2, 'title' => 'two'); $bar[] = array('id' => 2, 'title' => 'DEUX'); $bar[] = array('id' => 3, 'title' => 'TROIS'); array_udiff($foo, $bar, function($x, $y) { print $x['title'] . ", " . $y['title'] . "\n"; return 0;});

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.0100.00718.53
8.3.50.0130.00522.04
8.3.40.0040.01118.83
8.3.30.0030.01119.05
8.3.20.0000.00720.29
8.3.10.0000.00923.58
8.3.00.0050.00321.02
8.2.180.0120.00616.63
8.2.170.0140.00722.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0130.00626.16
8.2.120.0000.00820.92
8.2.110.0030.00719.21
8.2.100.0060.00617.72
8.2.90.0000.00817.63
8.2.80.0090.00017.97
8.2.70.0080.00017.93
8.2.60.0050.00218.22
8.2.50.0050.00318.10
8.2.40.0030.00519.90
8.2.30.0050.00318.35
8.2.20.0020.00517.68
8.2.10.0050.00318.19
8.2.00.0040.00417.63
8.1.280.0060.01225.92
8.1.270.0000.00822.07
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00019.07
8.1.230.0040.00719.07
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0000.00818.73
8.1.160.0040.00422.02
8.1.150.0000.00718.64
8.1.140.0040.00417.41
8.1.130.0000.00717.88
8.1.120.0070.00017.42
8.1.110.0070.00017.46
8.1.100.0000.00717.43
8.1.90.0040.00417.35
8.1.80.0000.00717.42
8.1.70.0040.00417.44
8.1.60.0040.00417.64
8.1.50.0050.00217.54
8.1.40.0040.00417.57
8.1.30.0000.00917.69
8.1.20.0050.00217.55
8.1.10.0000.00817.61
8.1.00.0040.00417.41
8.0.300.0030.00519.69
8.0.290.0030.00616.75
8.0.280.0070.00018.44
8.0.270.0000.00817.20
8.0.260.0000.00617.17
8.0.250.0000.00816.89
8.0.240.0040.00416.94
8.0.230.0000.00716.82
8.0.220.0000.00716.93
8.0.210.0000.00716.77
8.0.200.0060.00016.92
8.0.190.0040.00417.00
8.0.180.0040.00416.92
8.0.170.0040.00416.95
8.0.160.0070.00016.95
8.0.150.0070.00016.84
8.0.140.0050.00216.84
8.0.130.0050.00313.34
8.0.120.0050.00316.83
8.0.110.0050.00216.77
8.0.100.0070.00017.00
8.0.90.0040.00416.93
8.0.80.0040.01416.83
8.0.70.0030.00616.90
8.0.60.0000.00717.03
8.0.50.0040.00416.76
8.0.30.0030.01616.95
8.0.20.0130.00617.40
8.0.10.0060.00316.89
8.0.00.0130.00516.60
7.4.330.0050.00015.01
7.4.320.0030.00616.57
7.4.300.0040.00416.45
7.4.290.0000.00816.35
7.4.280.0000.00816.44
7.4.270.0030.00316.60
7.4.260.0080.00016.40
7.4.250.0080.00016.46
7.4.240.0000.00716.49
7.4.230.0050.00316.36
7.4.220.0150.00916.48
7.4.210.0130.00316.63
7.4.200.0000.00716.48
7.4.160.0160.00016.38
7.4.150.0090.01017.40
7.4.140.0120.00717.86
7.4.130.0070.00916.62
7.4.120.0070.01016.41
7.4.110.0030.01516.65
7.4.100.0140.00416.60
7.4.90.0070.01016.46
7.4.80.0030.01519.39
7.4.70.0080.00816.36
7.4.60.0100.00716.47
7.4.50.0000.00816.51
7.4.40.0070.01416.49
7.4.30.0120.00416.45
7.4.00.0040.00814.97
7.3.330.0030.00513.30
7.3.320.0000.00613.11
7.3.310.0000.00716.11
7.3.300.0000.00716.30
7.3.290.0110.00416.25
7.3.280.0100.00616.19
7.3.270.0230.00017.40
7.3.260.0040.01216.69
7.3.250.0090.00716.27
7.3.240.0120.00616.21
7.3.230.0070.01016.39
7.3.210.0170.00716.36
7.3.200.0120.00619.39
7.3.190.0090.01216.55
7.3.180.0040.01616.50
7.3.170.0040.01216.30
7.3.160.0090.00616.46
7.3.120.0100.00617.15
7.3.110.0040.01117.15
7.3.100.0040.01117.15
7.3.90.0070.01017.15
7.3.80.0070.00717.15
7.3.70.0030.00817.15
7.3.60.0100.00717.15
7.3.50.0100.00717.15
7.3.40.0070.01017.15
7.3.30.0070.01017.15
7.3.20.0070.00417.15
7.3.10.0140.00017.15
7.3.00.0100.00317.15
7.2.330.0060.01316.73
7.2.320.0060.01216.69
7.2.310.0180.00016.47
7.2.300.0190.02716.48
7.2.290.0070.01016.44
7.2.240.0070.00717.15
7.2.230.0070.00717.15
7.2.220.0030.01017.15
7.2.210.0040.01117.15
7.2.200.0060.01217.15
7.2.190.0060.00917.15
7.2.180.0000.01517.15
7.2.170.0060.01017.15
7.2.160.0110.00417.15
7.2.150.0040.01417.15
7.2.140.0070.00717.15
7.2.130.0040.01417.15
7.2.120.0100.00317.15
7.2.110.0070.00717.15
7.2.100.0110.00617.15
7.2.90.0070.01017.15
7.2.80.0000.01617.15
7.2.70.0060.01017.15
7.2.60.0020.01417.03
7.2.50.0070.01017.15
7.2.40.0040.01517.15
7.2.30.0100.01017.15
7.2.20.0070.01017.15
7.2.10.0130.00317.15
7.2.00.0080.00818.30
7.1.330.0040.00717.15
7.1.320.0070.00717.15
7.1.310.0110.00417.15
7.1.300.0070.01117.15
7.1.290.0040.00917.15
7.1.280.0070.00717.15
7.1.270.0000.01717.15
7.1.260.0070.00717.15
7.1.250.0030.01317.15
7.1.200.0070.00715.90
7.1.100.0030.00618.02
7.1.70.0050.00316.93
7.1.60.0110.01419.70
7.1.50.0100.02017.04
7.1.00.0000.08022.36
7.0.200.0070.00315.13
7.0.140.0070.07022.04
7.0.60.0070.06319.94
7.0.50.0030.08317.86
7.0.40.0100.08320.18
7.0.30.0570.06720.16
7.0.20.0330.08020.10
7.0.10.0170.07720.19
7.0.00.0070.05020.27
5.6.280.0030.06720.95
5.6.210.0030.04320.45
5.6.200.0100.05018.18
5.6.190.0030.07320.48
5.6.180.3030.05020.61
5.6.170.0400.06320.53
5.6.160.0000.04720.46
5.6.150.0070.08318.19
5.6.140.0130.06718.28
5.6.130.0030.06318.11
5.6.120.0170.07720.99
5.6.110.0170.06021.02
5.6.100.0030.05021.13
5.6.90.0030.04020.97
5.6.80.0100.05720.29
5.6.70.4530.03720.50
5.5.350.0200.03320.38
5.5.340.0070.08718.09
5.5.330.0000.04320.32
5.5.320.0500.06720.34
5.5.310.0200.04720.36
5.5.300.0070.06717.92
5.5.290.0270.06717.97
5.5.280.0070.09020.68
5.5.270.0130.07720.75
5.5.260.0070.08320.86
5.5.250.0070.06020.68
5.5.240.0170.06320.07
5.4.450.0170.04028.29
5.4.440.0330.05028.29
5.4.430.0330.05028.29
5.4.420.0330.04328.29
5.4.410.0430.03328.29
5.4.400.0400.04028.28
5.4.390.0270.05028.29
5.4.380.0130.05318.76
5.4.370.0170.05018.78
5.4.360.0170.05718.76
5.4.350.0030.06318.76
5.4.340.0100.05318.64
5.4.320.0090.05012.50
5.4.310.0050.03912.50
5.4.300.0130.04212.50
5.4.290.0060.04612.50
5.4.280.0050.04112.39
5.4.270.0070.03712.39
5.4.260.0060.04312.39
5.4.250.0090.03912.39
5.4.240.0080.03712.39
5.4.230.0050.03912.39
5.4.220.0060.03912.39
5.4.210.0070.04612.39
5.4.200.0030.04312.39
5.4.190.0060.03512.38
5.4.180.0070.03812.38
5.4.170.0060.03812.39
5.4.160.0060.03912.39
5.4.150.0080.03812.39
5.4.140.0070.04212.07
5.4.130.0080.03412.06
5.4.120.0020.04312.02
5.4.110.0080.03612.02
5.4.100.0090.04112.02
5.4.90.0060.05112.02
5.4.80.0060.05012.02
5.4.70.0130.04112.01
5.4.60.0040.04812.00
5.4.50.0080.03912.01
5.4.40.0130.03212.00
5.4.30.0070.03911.99
5.4.20.0080.03711.99
5.4.10.0100.03311.99
5.4.00.0060.03711.48
5.3.290.0090.03712.80
5.3.280.0110.03512.71
5.3.270.0050.04412.72
5.3.260.0090.03712.72
5.3.250.0080.04312.72
5.3.240.0090.03612.72
5.3.230.0110.03712.70
5.3.220.0070.04112.68
5.3.210.0120.04512.68
5.3.200.0090.05012.68
5.3.190.0060.03812.68
5.3.180.0050.04012.67
5.3.170.0070.04212.67
5.3.160.0060.05212.67
5.3.150.0110.04912.68
5.3.140.0060.04412.66
5.3.130.0070.04112.66
5.3.120.0050.04512.66
5.3.110.0100.05212.66
5.3.100.0080.04812.12
5.3.90.0140.04312.10
5.3.80.0110.04812.09
5.3.70.0070.04612.09
5.3.60.0110.04512.07
5.3.50.0110.04712.02
5.3.40.0080.04712.03
5.3.30.0070.04911.98
5.3.20.0080.04611.76
5.3.10.0130.04211.73
5.3.00.0150.04111.72
5.2.170.0150.0339.18
5.2.160.0060.0399.18
5.2.150.0070.0399.19
5.2.140.0040.0429.18
5.2.130.0110.0349.14
5.2.120.0150.0299.14
5.2.110.0120.0329.15
5.2.100.0130.0319.15
5.2.90.0060.0399.15
5.2.80.0090.0399.14
5.2.70.0080.0409.14
5.2.60.0060.0419.09
5.2.50.0100.0379.07
5.2.40.0100.0349.04
5.2.30.0030.0359.02
5.2.20.0080.0399.00
5.2.10.0050.0388.93
5.2.00.0060.0328.79
5.1.60.0050.0248.07
5.1.50.0030.0278.07
5.1.40.0060.0238.05
5.1.30.0080.0248.40
5.1.20.0080.0248.42
5.1.10.0050.0288.14
5.1.00.0040.0288.14
5.0.50.0050.0216.63
5.0.40.0030.0216.48
5.0.30.0040.0336.29
5.0.20.0030.0226.27
5.0.10.0030.0216.25
5.0.00.0030.0326.23
4.4.90.0030.0164.78
4.4.80.0040.0184.75
4.4.70.0050.0204.75
4.4.60.0040.0204.76
4.4.50.0040.0204.77
4.4.40.0100.0294.71
4.4.30.0050.0204.76
4.4.20.0050.0214.85
4.4.10.0060.0204.85
4.4.00.0050.0304.75
4.3.110.0030.0194.67
4.3.100.0060.0154.67
4.3.90.0040.0164.64
4.3.80.0040.0254.59
4.3.70.0030.0174.63
4.3.60.0040.0144.63
4.3.50.0040.0154.63
4.3.40.0020.0264.54
4.3.30.0030.0213.29
4.3.20.0040.0173.27
4.3.10.0010.0193.22
4.3.00.0000.02028.28

preferences:
41.04 ms | 401 KiB | 5 Q