3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1=array('a'=>'A','b'=>'B','c'=>'C'); $arr2=array('d'=>'D','E'=>'E','c'=>'C'); $res = array_diff($arr1, $arr2); print_r($res);

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.0060.00918.43
8.3.50.0140.00016.46
8.3.40.0140.00418.71
8.3.30.0110.00418.54
8.3.20.0000.00921.50
8.3.10.0050.00323.52
8.3.00.0040.00417.96
8.2.180.0070.00716.38
8.2.170.0070.01022.96
8.2.160.0070.00721.12
8.2.150.0050.00324.18
8.2.140.0140.00024.66
8.2.130.0000.00720.35
8.2.120.0080.00026.35
8.2.110.0080.00319.29
8.2.100.0080.00318.22
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0000.00718.04
8.2.50.0050.00318.10
8.2.40.0040.00420.45
8.2.30.0000.00820.98
8.2.20.0040.00418.05
8.2.10.0040.00418.01
8.2.00.0030.00517.95
8.1.280.0120.00325.92
8.1.270.0000.00723.86
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0040.00422.29
8.1.230.0090.00317.52
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00420.39
8.1.160.0000.00718.72
8.1.150.0070.00020.02
8.1.140.0040.00419.41
8.1.130.0070.00018.87
8.1.120.0040.00417.41
8.1.110.0040.00417.42
8.1.100.0070.00317.37
8.1.90.0000.00817.34
8.1.80.0000.00717.41
8.1.70.0070.00017.42
8.1.60.0050.00317.54
8.1.50.0000.00717.46
8.1.40.0060.00317.44
8.1.30.0000.00817.59
8.1.20.0040.00417.54
8.1.10.0060.00317.45
8.1.00.0000.00817.32
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0040.00418.39
8.0.270.0000.00717.18
8.0.260.0060.00016.75
8.0.250.0070.00016.88
8.0.240.0030.00616.77
8.0.230.0000.00716.76
8.0.220.0000.00716.85
8.0.210.0030.00316.75
8.0.200.0030.00316.74
8.0.190.0080.00416.85
8.0.180.0000.00716.82
8.0.170.0000.00816.66
8.0.160.0000.00716.79
8.0.150.0000.00716.84
8.0.140.0000.00716.76
8.0.130.0070.00013.30
8.0.120.0040.00316.77
8.0.110.0030.00316.70
8.0.100.0050.00216.84
8.0.90.0040.00416.88
8.0.80.0090.01016.88
8.0.70.0040.00416.75
8.0.60.0000.00716.69
8.0.50.0040.00416.80
8.0.30.0150.00417.01
8.0.20.0100.00817.40
8.0.10.0040.00417.01
8.0.00.0080.00816.66
7.4.330.0000.00515.55
7.4.320.0000.00616.50
7.4.300.0000.00616.53
7.4.290.0000.00816.51
7.4.280.0030.00616.50
7.4.270.0040.00416.54
7.4.260.0040.00416.39
7.4.250.0000.00916.43
7.4.240.0030.00316.57
7.4.230.0000.00716.63
7.4.220.0150.00316.42
7.4.210.0030.01116.55
7.4.200.0030.00316.55
7.4.160.0070.01216.40
7.4.150.0090.01517.40
7.4.140.0110.00617.86
7.4.130.0110.00716.37
7.4.120.0110.00916.35
7.4.110.0060.01316.37
7.4.100.0160.00016.41
7.4.90.0110.00916.28
7.4.80.0060.00919.39
7.4.70.0080.00816.44
7.4.60.0040.01116.36
7.4.50.0000.01216.39
7.4.40.0080.00816.26
7.4.30.0070.01016.43
7.4.00.0070.01014.94
7.3.330.0030.00312.89
7.3.320.0000.00513.08
7.3.310.0080.00016.17
7.3.300.0030.00315.93
7.3.290.0090.00616.11
7.3.280.0070.00716.12
7.3.270.0060.01617.40
7.3.260.0060.01416.39
7.3.250.0080.01016.18
7.3.240.0090.00716.39
7.3.230.0030.01316.36
7.3.210.0090.00916.21
7.3.200.0090.01316.46
7.3.190.0140.00316.27
7.3.180.0030.01616.16
7.3.170.0090.00616.33
7.3.160.0080.00816.22
7.3.120.0060.00914.89
7.3.110.0110.00714.54
7.3.100.0040.01114.41
7.3.90.0110.00414.72
7.3.80.0040.00414.51
7.3.70.0000.01514.61
7.3.60.0070.00314.57
7.3.50.0110.00414.46
7.3.40.0070.00714.49
7.3.30.0040.00814.54
7.3.20.0080.00616.49
7.3.10.0070.00516.36
7.3.00.0050.00716.50
7.2.330.0090.00816.51
7.2.320.0090.00916.45
7.2.310.0120.00916.36
7.2.300.0070.01016.44
7.2.290.0040.01616.59
7.2.240.0070.00714.91
7.2.230.0140.00314.74
7.2.220.0040.01114.79
7.2.210.0110.00714.66
7.2.200.0040.01114.61
7.2.190.0060.00914.71
7.2.180.0070.00714.90
7.2.170.0060.00914.53
7.2.160.0040.01114.84
7.2.150.0040.00716.80
7.2.140.0110.00416.89
7.2.130.0050.00816.58
7.2.120.0070.00516.71
7.2.110.0210.00516.41
7.2.100.0070.01016.62
7.2.90.0060.00816.49
7.2.80.0040.00716.73
7.2.70.0050.00616.64
7.2.60.0060.00816.74
7.2.50.0130.00716.71
7.2.40.0050.00916.84
7.2.30.0080.00516.60
7.2.20.0060.00816.77
7.2.10.0040.00616.89
7.2.00.0030.01017.54
7.1.330.0070.00715.57
7.1.320.0120.00315.57
7.1.310.0100.00315.57
7.1.300.0030.01015.64
7.1.290.0030.01015.60
7.1.280.0030.01015.71
7.1.270.0000.01615.68
7.1.260.0000.00715.88
7.1.250.0030.00815.78
7.1.200.0030.00915.49
7.1.100.0030.01018.16
7.1.70.0000.01016.80
7.1.60.0630.01033.31
7.1.50.0700.01032.99
7.1.40.0630.01032.40
7.1.30.0570.01732.73
7.1.20.0630.01032.62
7.1.10.0670.00714.79
7.1.00.0830.01714.75
7.0.200.0600.00714.59
7.0.190.0630.00314.52
7.0.180.0400.01314.24
7.0.170.0500.01314.27
7.0.160.0870.01314.43
7.0.150.0700.01014.43
7.0.140.0600.01014.47
7.0.130.1130.01014.50
7.0.120.0930.00714.53
7.0.110.0470.01014.55
7.0.100.1000.00714.47
7.0.90.0500.00714.30
7.0.80.0470.01014.68
7.0.70.0530.01314.46
7.0.60.0530.01014.14
7.0.50.0630.01014.43
7.0.40.0530.01314.55
7.0.30.0570.01714.38
7.0.20.0470.01314.43
7.0.10.0470.01014.43
7.0.00.0570.01014.61

preferences:
60.26 ms | 400 KiB | 5 Q