3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $id; /** * @var array */ private $other; public function __construct($id,$other) { $this->id = $id; $this->other = $other; } } $a = new A(1, array( 'truc', 'bidule' => array( 'something' ) )); $b = new A(1, array( 'truc', 'bidule' => array( 'something' ) )); $c = new A(1, array( 'truc', 'bidule' => array( 'something else' ) )); var_dump($a === $b); var_dump($a == $b); var_dump($a === $c); var_dump($a == $c);

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.70.0070.00718.15
8.3.60.0120.00618.39
8.3.50.0130.00517.45
8.3.40.0180.00018.47
8.3.30.0110.00318.57
8.3.20.0090.00918.76
8.3.10.0000.00820.45
8.3.00.0060.00317.63
8.2.180.0130.00416.46
8.2.170.0120.00622.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00319.83
8.2.110.0060.00321.03
8.2.100.0000.01217.78
8.2.90.0070.00019.13
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0030.00517.91
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0040.00418.07
8.2.20.0050.00217.71
8.2.10.0030.00617.77
8.2.00.0040.00417.66
8.1.280.0110.00425.92
8.1.270.0110.00824.66
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.37
8.1.230.0050.00520.88
8.1.220.0050.00318.77
8.1.210.0000.00818.96
8.1.200.0060.00317.35
8.1.190.0110.00017.52
8.1.180.0000.00818.10
8.1.170.0030.00518.74
8.1.160.0040.00418.80
8.1.150.0040.00418.55
8.1.140.0060.00317.41
8.1.130.0030.00317.79
8.1.120.0000.00717.48
8.1.110.0040.00417.36
8.1.100.0000.00717.43
8.1.90.0070.00017.47
8.1.80.0040.00317.31
8.1.70.0000.00817.38
8.1.60.0070.00017.66
8.1.50.0000.00717.46
8.1.40.0040.00417.48
8.1.30.0000.00717.60
8.1.20.0040.00417.61
8.1.10.0000.00717.51
8.1.00.0060.00317.53
8.0.300.0040.00419.98
8.0.290.0030.00316.75
8.0.280.0000.00718.49
8.0.270.0030.00317.24
8.0.260.0000.00716.82
8.0.250.0080.00016.89
8.0.240.0000.00816.85
8.0.230.0070.00016.96
8.0.220.0070.00016.88
8.0.210.0000.00716.84
8.0.200.0030.00316.89
8.0.190.0070.00016.95
8.0.180.0040.00416.89
8.0.170.0000.00916.92
8.0.160.0000.00716.73
8.0.150.0060.00316.79
8.0.140.0000.00916.84
8.0.130.0030.00313.28
8.0.120.0000.00716.94
8.0.110.0040.00416.85
8.0.100.0050.00216.89
8.0.90.0000.00716.74
8.0.80.0090.00616.79
8.0.70.0040.00416.75
8.0.60.0070.00016.75
8.0.50.0040.00416.68
8.0.30.0100.00816.95
8.0.20.0120.00717.18
8.0.10.0080.00017.08
8.0.00.0190.01016.70
7.4.330.0020.00214.73
7.4.320.0000.00716.53
7.4.300.0060.00016.59
7.4.290.0000.00616.53
7.4.280.0080.00316.50
7.4.270.0030.00316.43
7.4.260.0030.00313.21
7.4.250.0020.00516.40
7.4.240.0000.00916.50
7.4.230.0030.00316.71
7.4.220.0090.00616.48
7.4.210.0060.00916.58
7.4.200.0030.00516.71
7.4.190.0030.00316.74
7.4.160.0090.00716.47
7.4.150.0130.00617.07
7.4.140.0110.01017.24
7.4.130.0070.00916.53
7.4.120.0100.00716.48
7.4.110.0070.01016.53
7.4.100.0060.02016.50
7.4.90.0150.00316.48
7.4.80.0030.01418.80
7.4.70.0060.01216.29
7.4.60.0100.00616.50
7.4.50.0060.00323.42
7.4.40.0120.00321.69
7.4.30.0130.00316.49
7.4.00.0050.01114.99
7.3.330.0030.00313.25
7.3.320.0060.00013.07
7.3.310.0070.00016.17
7.3.300.0000.00616.25
7.3.290.0040.01216.24
7.3.280.0080.01016.29
7.3.270.0100.00717.07
7.3.260.0090.00718.24
7.3.250.0130.00516.30
7.3.240.0170.00716.25
7.3.230.0090.00616.37
7.3.210.0080.00816.14
7.3.200.0130.01019.39
7.3.190.0160.00316.27
7.3.180.0120.00316.65
7.3.170.0120.00316.42
7.3.160.0100.00616.49
7.3.120.0060.00814.69
7.3.110.0060.01114.67
7.3.100.0080.00814.62
7.3.90.0080.00714.76
7.3.80.0090.00614.73
7.3.70.0050.00914.74
7.3.60.0030.01214.60
7.3.50.0080.00514.70
7.3.40.0090.00614.69
7.3.30.0020.01414.71
7.3.20.0060.00716.33
7.3.10.0050.00916.59
7.3.00.0070.00616.42
7.2.330.0060.01116.73
7.2.320.0150.00316.55
7.2.310.0150.00316.46
7.2.300.0130.00316.68
7.2.290.0080.00816.57
7.2.250.0000.02114.88
7.2.240.0080.01014.96
7.2.230.0080.00914.93
7.2.220.0050.01215.02
7.2.210.0050.01214.86
7.2.200.0070.00714.97
7.2.190.0090.00714.71
7.2.180.0090.00614.82
7.2.170.0040.01114.71
7.2.160.0030.01214.84
7.2.150.0030.00917.04
7.2.140.0090.00616.82
7.2.130.0080.00716.78
7.2.120.0120.00216.96
7.2.110.0090.00616.79
7.2.100.0050.00616.88
7.2.90.0090.00516.77
7.2.80.0040.00916.87
7.2.70.0060.00816.90
7.2.60.0070.00716.86
7.2.50.0130.00416.71
7.2.40.0050.00916.93
7.2.30.0050.01016.74
7.2.20.0090.00716.81
7.2.10.0020.00916.71
7.2.00.0100.00517.46
7.1.330.0040.01015.81
7.1.320.0060.00715.66
7.1.310.0060.00715.89
7.1.300.0020.01015.75
7.1.290.0040.00715.85
7.1.280.0080.00515.61
7.1.270.0100.00315.66
7.1.260.0050.00815.68
7.1.250.0080.00615.73
7.1.100.0040.01217.96
7.1.70.0000.00716.95
7.1.60.0140.01119.40
7.1.50.0140.01016.92
7.1.00.0070.07022.45
7.0.200.0070.00316.75
7.0.140.0070.07322.18
7.0.120.0070.03022.18
7.0.60.0030.04021.82
7.0.50.0130.07017.95
7.0.40.0170.07020.23
7.0.30.0330.07720.32
7.0.20.0200.03720.09
7.0.10.0100.04720.05
7.0.00.0030.04720.15
5.6.280.0030.07320.82
5.6.210.0100.06320.48
5.6.200.0100.08318.12
5.6.190.0070.08020.41
5.6.180.0300.06320.49
5.6.170.0230.06020.58
5.6.160.0200.07020.47
5.6.150.0100.07718.21
5.6.140.0000.04318.23
5.6.130.0030.04318.18
5.6.120.0070.05020.95
5.6.110.0100.08320.98
5.6.100.0100.07320.99
5.6.90.0100.08721.12
5.6.80.0030.08320.41
5.5.350.0000.06320.34
5.5.340.0030.05018.09
5.5.330.0030.04320.40
5.5.320.0030.04020.20
5.5.310.0270.03720.34
5.5.300.0030.04318.08
5.5.290.0030.08718.03
5.5.280.0030.05020.80
5.5.270.0130.07720.75
5.5.260.0070.03720.80
5.5.250.0230.07020.61
5.5.240.0070.07720.23
5.4.450.0170.06719.57
5.4.440.0100.05019.56
5.4.430.0100.05719.56
5.4.420.0100.07019.19
5.4.410.0070.05719.44
5.4.400.0100.03318.86
5.4.390.0100.06019.08
5.4.380.0070.07718.98
5.4.370.0100.07318.85
5.4.360.0200.06718.92
5.4.350.0100.07318.98
5.4.340.0100.05319.00
5.4.320.0030.05019.25
5.4.310.0100.07019.12
5.4.300.0030.03719.14
5.4.290.0100.07318.96
5.4.280.0070.03719.19
5.4.270.0070.04318.92
5.4.260.0000.08019.23
5.4.250.0070.07019.11
5.4.240.0030.07718.86
5.4.230.0100.07718.96
5.4.220.0070.07719.23
5.4.210.0030.07318.97
5.4.200.0070.06318.86
5.4.190.0100.06318.96
5.4.180.0000.05719.23
5.4.170.0030.07319.19
5.4.160.0130.06719.22
5.4.150.0030.04019.10
5.4.140.0030.03716.40
5.4.130.0070.03316.37
5.4.120.0000.04716.38
5.4.110.0030.04016.39
5.4.100.0170.02316.47
5.4.90.0100.03716.39
5.4.80.0000.03716.38
5.4.70.0070.03016.62
5.4.60.0030.03316.27
5.4.50.0030.03716.27
5.4.40.0100.03016.25
5.4.30.0070.03716.38
5.4.20.0030.03316.43
5.4.10.0030.03316.46
5.4.00.0070.03315.95
5.3.290.0070.08014.72
5.3.280.0170.06714.61
5.3.270.0170.07014.62
5.3.260.0030.03714.62
5.3.250.0030.03714.68
5.3.240.0000.04014.60
5.3.230.0070.03314.63
5.3.220.0070.03314.64
5.3.210.0070.03314.57
5.3.200.0070.03314.60
5.3.190.0030.03714.64
5.3.180.0030.03714.66
5.3.170.0100.03014.56
5.3.160.0000.03714.58
5.3.150.0030.04014.57
5.3.140.0030.03714.47
5.3.130.0030.03714.60
5.3.120.0000.04014.43
5.3.110.0100.03014.60
5.3.100.0000.03714.08
5.3.90.0070.03314.03
5.3.80.0030.03714.05
5.3.70.0030.03314.07
5.3.60.0000.03714.16
5.3.50.0000.03714.00
5.3.40.0030.03313.84
5.3.30.0070.03013.96
5.3.20.0030.03313.74
5.3.10.0000.03713.65
5.3.00.0030.03713.80
5.2.170.0030.02711.16
5.2.160.0000.03011.15
5.2.150.0000.03011.20
5.2.140.0030.03711.31
5.2.130.0030.02711.11
5.2.120.0030.03011.07
5.2.110.0000.03011.10
5.2.100.0070.03011.27
5.2.90.0000.03011.16
5.2.80.0000.03011.25
5.2.70.0000.03011.14
5.2.60.0000.03011.05
5.2.50.0030.02711.17
5.2.40.0030.02710.99
5.2.30.0000.03010.96
5.2.20.0100.02010.91
5.2.10.0100.02010.91
5.2.00.0000.03010.86
5.1.60.0070.02710.15
5.1.50.0070.05010.15
5.1.40.0070.03310.05
5.1.30.0030.03010.41
5.1.20.0000.05010.32
5.1.10.0030.02710.09
5.1.00.0170.04710.06
5.0.50.0000.0408.57
5.0.40.0000.0338.55
5.0.30.0030.0638.25
5.0.20.0000.0378.18
5.0.10.0000.0478.11
5.0.00.0000.0708.22
4.4.90.0000.0137.62
4.4.80.0000.0177.62
4.4.70.0030.0137.62
4.4.60.0030.0137.62
4.4.50.0030.0137.62
4.4.40.0030.0377.62
4.4.30.0000.0307.62
4.4.20.0000.0177.62
4.4.10.0030.0277.62
4.4.00.0000.0337.62
4.3.110.0000.0237.62
4.3.100.0030.0237.62
4.3.90.0030.0307.62
4.3.80.0000.0277.62
4.3.70.0000.0337.62
4.3.60.0000.0277.62
4.3.50.0000.0177.62
4.3.40.0030.0477.62
4.3.30.0000.0337.62
4.3.20.0030.0337.62
4.3.10.0000.0407.62
4.3.00.0000.0277.62

preferences:
57.08 ms | 401 KiB | 5 Q