3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function abc(){ return 'asd'; } } function myfunction_value($a,$b) { var_dump($a->abc());die; if ($a===$b) { return 0; } return ($a>$b)?1:-1; } $c = new A(); $a1=array("a"=>$c,"b"=>"green","c"=>"blue"); $a2=array("a"=>"red","b"=>"green","c"=>"green"); $result=array_udiff_assoc($a1,$a2,"myfunction_value");die; print_r($result);

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.40.0080.00818.96
8.3.30.0140.00019.17
8.3.20.0040.00420.33
8.3.10.0030.00523.61
8.3.00.0030.00619.25
8.2.170.0110.01122.96
8.2.160.0000.01720.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.95
8.2.110.0060.00322.15
8.2.100.0110.00018.12
8.2.90.0030.00619.26
8.2.80.0030.00517.97
8.2.70.0090.00017.50
8.2.60.0030.00617.92
8.2.50.0030.00718.07
8.2.40.0030.00619.59
8.2.30.0000.00718.06
8.2.20.0000.00717.75
8.2.10.0040.00418.12
8.2.00.0040.00417.86
8.1.270.0000.01523.85
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00321.94
8.1.230.0070.00419.09
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0080.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.60
8.1.160.0000.00721.93
8.1.150.0030.00618.77
8.1.140.0080.00017.45
8.1.130.0050.00317.76
8.1.120.0000.00817.32
8.1.110.0020.00517.44
8.1.100.0040.00417.42
8.1.90.0000.00817.38
8.1.80.0000.00817.36
8.1.70.0030.00317.29
8.1.60.0060.00317.63
8.1.50.0040.00417.48
8.1.40.0080.00017.41
8.1.30.0040.00417.67
8.1.20.0040.00417.63
8.1.10.0000.00717.45
8.1.00.0030.00617.50
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0020.00518.34
8.0.270.0050.00317.22
8.0.260.0030.00317.20
8.0.250.0030.00316.92
8.0.240.0070.00016.95
8.0.230.0040.00416.98
8.0.220.0030.00516.89
8.0.210.0000.00816.79
8.0.200.0060.00016.95
8.0.190.0000.00816.96
8.0.180.0080.00316.82
8.0.170.0000.00716.99
8.0.160.0000.00716.72
8.0.150.0000.00716.86
8.0.140.0030.00316.87
8.0.130.0070.00013.29
8.0.120.0080.00016.88
8.0.110.0040.00416.82
8.0.100.0000.00716.68
8.0.90.0040.00416.86
8.0.80.0100.00716.79
8.0.70.0000.00816.96
8.0.60.0070.00016.82
8.0.50.0000.00716.97
8.0.30.0120.00817.07
8.0.20.0110.01117.40
8.0.10.0040.00417.08
8.0.00.0080.01416.65
7.4.330.0000.00615.09
7.4.320.0000.00716.55
7.4.300.0060.00016.61
7.4.290.0070.00016.55
7.4.280.0040.00416.50
7.4.270.0070.00016.43
7.4.260.0060.00316.47
7.4.250.0040.00416.55
7.4.240.0000.00816.49
7.4.230.0030.00316.51
7.4.220.0090.01616.73
7.4.210.0060.00916.51
7.4.200.0030.00316.36
7.4.160.0060.01016.52
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0130.01016.61
7.4.120.0130.00316.64
7.4.110.0090.00616.45
7.4.100.0130.00616.61
7.4.90.0140.00416.40
7.4.80.0140.00319.39
7.4.70.0060.01716.54
7.4.60.0030.01316.60
7.4.50.0050.00016.75
7.4.40.0110.01116.45
7.4.30.0090.00616.67
7.4.00.0040.01214.96
7.3.330.0070.00013.39
7.3.320.0020.00213.41
7.3.310.0000.00616.41
7.3.300.0000.00716.48
7.3.290.0060.01316.45
7.3.280.0090.00616.35
7.3.270.0040.01217.40
7.3.260.0120.00616.32
7.3.250.0100.00716.45
7.3.240.0150.00416.39
7.3.230.0080.00816.39
7.3.210.0150.00416.54
7.3.200.0070.01519.39
7.3.190.0100.01016.48
7.3.180.0090.00616.39
7.3.170.0040.01116.68
7.3.160.0060.00916.36
7.3.120.0070.01014.75
7.3.110.0100.00714.66
7.3.100.0070.00714.51
7.3.90.0060.00914.70
7.3.80.0030.00914.80
7.3.70.0060.00614.80
7.3.60.0000.01214.47
7.3.50.0060.00314.90
7.3.40.0160.00014.77
7.3.30.0070.00714.83
7.3.20.0040.00716.58
7.3.10.0080.00816.60
7.3.00.0040.01116.27
7.2.330.0030.01716.61
7.2.320.0080.00816.75
7.2.310.0110.00616.46
7.2.300.0130.00316.75
7.2.290.0060.01016.71
7.2.250.0060.00914.86
7.2.240.0030.01715.23
7.2.230.0070.00714.96
7.2.220.0040.01114.97
7.2.210.0090.00314.82
7.2.200.0000.01914.80
7.2.190.0090.00614.88
7.2.180.0000.01215.14
7.2.170.0100.00714.59
7.2.130.0100.00316.68
7.2.120.0060.00617.00
7.2.110.0090.00616.53
7.2.100.0070.00716.86
7.2.90.0040.01116.90
7.2.80.0080.00316.53
7.2.70.0070.01116.75
7.2.60.0030.00916.62
7.2.50.0060.01016.70
7.2.40.0030.01216.51
7.2.30.0070.01116.76
7.2.20.0080.00417.06
7.2.10.0000.01416.54
7.2.00.0050.00918.00
7.1.330.0000.01715.55
7.1.320.0030.00915.83
7.1.310.0060.00615.78
7.1.300.0070.01015.88
7.1.290.0040.00815.44
7.1.280.0070.00715.86
7.1.270.0090.00615.49
7.1.260.0040.01115.68
7.1.250.0070.00715.73
7.1.100.0000.01117.89
7.1.70.0040.01217.22
7.1.60.0070.01519.40
7.1.50.0210.00016.53
7.1.00.0000.08022.47
7.0.200.0000.00816.79
7.0.140.0100.06721.92
7.0.60.0300.06319.92
7.0.50.0000.04317.98
7.0.40.0100.04720.11
7.0.30.0170.04320.17
7.0.20.0070.05020.28
7.0.10.0100.05720.34
7.0.00.0100.08020.16
5.6.280.0100.06721.02
5.6.210.0100.07020.66
5.6.200.0070.04018.19
5.6.190.0100.08020.48
5.6.180.0200.04320.55
5.6.170.0330.06320.55
5.6.160.0000.04320.55
5.6.150.0000.07318.19
5.6.140.0070.04318.17
5.6.130.0070.07018.12
5.6.120.0070.08321.02
5.6.110.0000.09720.95
5.6.100.0030.09321.12
5.6.90.0170.07320.98
5.6.80.0170.03720.35
5.5.350.0030.07020.44
5.5.340.0100.07717.96
5.5.330.0070.08020.56
5.5.320.0170.08720.34
5.5.310.0330.05020.27
5.5.300.0070.05017.95
5.5.290.0100.08018.04
5.5.280.0070.08320.66
5.5.270.0130.07320.77
5.5.260.0070.08320.87
5.5.250.0100.08020.69
5.5.240.0200.06720.16
5.4.450.0630.06719.19
5.4.440.0530.05019.29
5.4.430.0700.07319.57
5.4.420.0000.06319.48
5.4.410.0100.05019.21
5.4.400.0330.05318.89
5.4.390.0370.05318.45
5.4.380.0130.08018.84
5.4.370.0270.05718.72
5.4.360.0170.04318.71
5.4.350.0130.05612.02
5.4.340.0060.04112.02
5.4.320.0060.03912.50
5.4.310.0070.03912.50
5.4.300.0050.03812.51
5.4.290.0110.03312.50
5.4.280.0030.03812.40
5.4.270.0050.03712.39
5.4.260.0040.03912.40
5.4.250.0060.04412.40
5.4.240.0050.03712.39
5.4.230.0050.03912.39
5.4.220.0040.03912.39
5.4.210.0070.04612.39
5.4.200.0060.03812.39
5.4.190.0090.03312.39
5.4.180.0060.03612.39
5.4.170.0070.03412.39
5.4.160.0080.03312.39
5.4.150.0070.03512.39
5.4.140.0040.03912.07
5.4.130.0060.03612.05
5.4.120.0060.03712.02
5.4.110.0050.03612.01
5.4.100.0040.04112.02
5.4.90.0060.03812.02
5.4.80.0050.03912.01
5.4.70.0060.03412.01
5.4.60.0050.03612.01
5.4.50.0070.03512.01
5.4.40.0060.03512.00
5.4.30.0090.03711.99
5.4.20.0050.03711.99
5.4.10.0060.03511.99
5.4.00.0060.03611.49
5.3.290.0050.04112.80
5.3.280.0110.04512.71
5.3.270.0110.03912.72
5.3.260.0080.03912.72
5.3.250.0100.03712.72
5.3.240.0040.04012.72
5.3.230.0080.03612.71
5.3.220.0050.04012.68
5.3.210.0090.03912.68
5.3.200.0060.03712.68
5.3.190.0040.04112.68
5.3.180.0060.03712.67
5.3.170.0090.03412.67
5.3.160.0060.03612.67
5.3.150.0050.04412.67
5.3.140.0100.03412.66
5.3.130.0060.05412.66
5.3.120.0060.04612.65
5.3.110.0060.03912.66
5.3.100.0070.04012.13
5.3.90.0070.04112.11
5.3.80.0030.04012.10
5.3.70.0110.04212.10
5.3.60.0050.04312.09
5.3.50.0090.03412.03
5.3.40.0040.03812.03
5.3.30.0070.03511.99
5.3.20.0090.03411.77
5.3.10.0060.03411.74
5.3.00.0070.03511.73
5.2.170.0050.0309.23
5.2.160.0060.0289.23
5.2.150.0030.0339.23
5.2.140.0040.0319.22
5.2.130.0040.0299.19
5.2.120.0070.0269.18
5.2.110.0030.0309.19
5.2.100.0030.0309.18
5.2.90.0070.0269.19
5.2.80.0070.0289.18
5.2.70.0050.0309.19
5.2.60.0060.0299.14
5.2.50.0040.0429.11
5.2.40.0040.0309.09
5.2.30.0080.0289.06
5.2.20.0050.0279.05
5.2.10.0030.0338.95
5.2.00.0080.0318.82
5.1.60.0040.0248.10
5.1.50.0050.0318.09
5.1.40.0050.0258.07
5.1.30.0060.0298.42
5.1.20.0040.0288.45
5.1.10.0020.0318.17
5.1.00.0070.0258.17
5.0.50.0060.0246.65
5.0.40.0020.0296.50
5.0.30.0050.0326.32
5.0.20.0040.0236.29
5.0.10.0040.0236.27
5.0.00.0020.0326.26
4.4.90.0040.0164.78
4.4.80.0060.0134.75
4.4.70.0020.0174.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0050.0224.71
4.4.30.0010.0174.76
4.4.20.0030.0164.85
4.4.10.0040.0184.85
4.4.00.0040.0274.76
4.3.110.0020.0164.67
4.3.100.0040.0144.66
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0050.0184.63
4.3.40.0030.0254.54
4.3.30.0010.0163.30
4.3.20.0000.0183.28
4.3.10.0030.0143.24
4.3.00.0100.0237.11

preferences:
37.29 ms | 400 KiB | 5 Q