3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sergio = [ 'name' => 'sergio carlos', 'food' => 'pizza and tacos', 'age' => 25, 'mental status' => 'kray kray' ]; $carlos = [ 'name' => 'sergio carlos', 'food' => 'pizza and tacos', 'age' => 25, 'mental status' => 'kray kray' ]; $obama = [ 'name' => 'barack obama', 'food' => 'burritos', 'age' => 666, 'mental status' => 'unknown' ]; for ($i=0;$i<999999;$i++) { //$sergio === $sergio; spl_object_hash($sergio) === spl_object_hash($sergio); //$sergio === $carlos; spl_object_hash($sergio) === spl_object_hash($carlos); //$sergio === $obama; spl_object_hash($sergio) === spl_object_hash($obama); }

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.0090.00916.50
8.3.50.0100.01221.93
8.3.40.0090.00618.84
8.3.30.0100.00319.17
8.3.20.0040.00420.34
8.3.10.0090.00921.74
8.3.00.0050.00319.19
8.2.180.0040.01116.75
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0150.00419.66
8.2.110.0100.00021.03
8.2.100.0060.00617.91
8.2.90.0040.00419.00
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00417.68
8.2.50.0080.00018.10
8.2.40.0000.00817.96
8.2.30.0000.00718.00
8.2.20.0000.00817.71
8.2.10.0000.00818.04
8.2.00.0000.00817.68
8.1.280.0120.00325.92
8.1.270.0070.00418.91
8.1.260.0000.01026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.75
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0080.00018.41
8.1.160.0060.00321.94
8.1.150.0000.00818.86
8.1.140.0040.00419.24
8.1.130.0030.00317.83
8.1.120.0000.00717.23
8.1.110.0000.00717.44
8.1.100.0070.00017.36
8.1.90.0030.00317.43
8.1.80.0080.00017.31
8.1.70.0000.00717.42
8.1.60.0030.01017.40
8.1.50.0040.00417.57
8.1.40.0080.00017.43
8.1.30.0040.00417.61
8.1.20.0040.00717.45
8.1.10.0080.00017.43
8.1.00.0040.00417.38
8.0.300.0000.00818.77
8.0.290.0050.00316.75
8.0.280.0070.00018.44
8.0.270.0030.00616.81
8.0.260.0000.00618.32
8.0.250.0030.00316.98
8.0.240.0040.00416.96
8.0.230.0000.00716.89
8.0.220.0030.00316.80
8.0.210.0000.00716.76
8.0.200.0060.00016.99
8.0.190.0070.00016.92
8.0.180.0000.00716.84
8.0.170.0070.00016.88
8.0.160.0040.00416.86
8.0.150.0000.00716.93
8.0.140.0050.00216.86
8.0.130.0000.00613.31
8.0.120.0000.00816.85
8.0.110.0040.00416.71
8.0.100.0000.00816.88
8.0.90.0050.00316.88
8.0.80.0120.00416.85
8.0.70.0040.00417.00
8.0.60.0030.00516.85
8.0.50.0050.00216.77
8.0.30.0130.01116.96
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0130.00516.70
7.4.330.0050.00015.03
7.4.320.0000.00716.50
7.4.300.0070.00016.32
7.4.290.0000.00816.49
7.4.280.0030.00316.29
7.4.270.0030.00316.34
7.4.260.0030.00316.32
7.4.250.0070.00016.39
7.4.240.0000.00716.34
7.4.230.0000.00716.13
7.4.220.0110.00616.38
7.4.210.0060.01116.39
7.4.200.0030.00316.45
7.4.160.0150.00316.39
7.4.150.0200.00717.40
7.4.140.0090.01517.86
7.4.130.0120.00916.30
7.4.120.0090.00916.40
7.4.110.0150.00616.49
7.4.100.0110.01416.45
7.4.90.0100.00716.49
7.4.80.0100.01319.39
7.4.70.0110.00716.52
7.4.60.0070.01116.44
7.4.50.0000.00816.07
7.4.40.0160.00316.46
7.4.30.0150.00916.46
7.4.00.0030.01214.79
7.3.330.0030.00313.19
7.3.320.0000.00513.07
7.3.310.0070.00016.07
7.3.300.0000.00716.20
7.3.290.0090.00816.15
7.3.280.0070.01016.19
7.3.270.0140.00717.40
7.3.260.0180.00016.25
7.3.250.0130.00916.12
7.3.240.0080.02016.34
7.3.230.0160.01416.39
7.3.210.0150.00716.10
7.3.200.0110.00619.39
7.3.190.0140.00616.34
7.3.180.0040.01416.05
7.3.170.0170.00316.27
7.3.160.0080.02116.30
7.2.330.0120.00916.26
7.2.320.0110.00716.58
7.2.310.0110.00816.50
7.2.300.0040.01516.53
7.2.290.0140.01516.55
7.2.110.1170.00316.22
7.2.80.0030.00916.52
7.2.00.0060.00919.12
7.1.200.0100.00315.69
7.1.100.0060.00617.85
7.1.70.0030.00717.17
7.1.60.0030.01719.46
7.1.50.0100.01417.20
7.1.00.0070.07322.20
7.0.200.0540.00314.71
7.0.140.0030.06021.98
7.0.110.0630.07319.86
7.0.100.0030.08320.10
7.0.90.0100.08019.91
7.0.80.0170.07020.06
7.0.70.0270.07019.95
7.0.60.0130.08020.02
7.0.50.0130.08320.23
7.0.40.0130.07720.04
7.0.30.0070.05720.04
7.0.20.0100.08720.09
7.0.10.0070.04719.95
7.0.00.0030.08720.15
5.6.280.0000.07320.82
5.6.260.0030.08020.50
5.6.250.0070.08020.65
5.6.240.0130.08020.64
5.6.230.0030.07020.63
5.6.220.0030.08720.54
5.6.210.0100.07320.55
5.6.200.0170.05721.04
5.6.190.0100.05321.02
5.6.180.0170.07321.08
5.6.170.0100.08320.90
5.6.160.0130.07721.28
5.6.150.0130.07721.12
5.6.140.0200.07321.19
5.6.130.0100.06321.25
5.6.120.0130.07321.28
5.6.110.0130.07721.13
5.6.100.0200.08021.06
5.6.90.0130.08020.92
5.6.80.0030.05020.59
5.6.70.0100.08320.60
5.6.60.0130.07320.39
5.6.50.0070.04320.28
5.6.40.0170.07020.32
5.6.30.0070.06720.57
5.6.20.0100.07720.54
5.6.10.0070.05020.54
5.6.00.0030.08320.48
5.5.380.0000.08720.50
5.5.370.0030.08720.54
5.5.360.0070.08720.28
5.5.350.0130.07720.43
5.5.340.0100.08021.02
5.5.330.0100.06021.02
5.5.320.0130.07720.74
5.5.310.0170.06020.74
5.5.300.0130.04320.96
5.5.290.0030.08720.98
5.5.280.0100.07720.90
5.5.270.0030.08020.96
5.5.260.0030.06020.93
5.5.250.0000.07020.70
5.5.240.0030.08320.42
5.5.230.0200.06720.24
5.5.220.0030.07720.21
5.5.210.0100.07320.15
5.5.200.0070.08020.13
5.5.190.0130.07320.33
5.5.180.0100.07720.36
5.5.160.0100.05320.02
5.5.150.0070.08020.12
5.5.140.0100.07020.33
5.5.130.0070.08020.34
5.5.120.0070.08020.29
5.5.110.0100.07720.20
5.5.100.0070.06720.14
5.5.90.0200.06019.99
5.5.80.0100.07319.97
5.5.70.0100.08020.18
5.5.60.0030.07020.19
5.5.50.0000.08020.21
5.5.40.0070.04319.96
5.5.30.0130.07020.08
5.5.20.0200.06720.23
5.5.10.0130.06719.93
5.5.00.0070.07720.22
5.4.450.0000.08719.21
5.4.440.0000.08719.25
5.4.430.0200.06719.25
5.4.420.0100.07719.14
5.4.410.0070.08019.26
5.4.400.0070.08019.13
5.4.390.0030.08018.92
5.4.380.0170.06319.06
5.4.370.0030.08318.85
5.4.360.0130.06319.05
5.4.350.0100.04318.93
5.4.340.0100.07318.85
5.4.320.0170.06318.88
5.4.310.0100.07319.13
5.4.300.0000.07019.04
5.4.290.0100.07018.95
5.4.280.0100.06718.95
5.4.270.0030.07718.82
5.4.260.0070.06318.93
5.4.250.0200.06318.85
5.4.240.0070.07718.87
5.4.230.0030.07719.03
5.4.220.0070.06019.03
5.4.210.0100.04319.03
5.4.200.0100.07318.84
5.4.190.0000.08018.96
5.4.180.0070.07718.88
5.4.170.0130.07318.90
5.4.160.0170.07018.81
5.4.150.0100.07319.03
5.4.140.0130.06716.45
5.4.130.0070.07316.37
5.4.120.0070.07016.11
5.4.110.0100.06316.37
5.4.100.0070.07316.19
5.4.90.0030.07316.32
5.4.80.0200.06716.38
5.4.70.0030.06716.31
5.4.60.0070.07016.19
5.4.50.0030.07316.34
5.4.40.0070.07316.19
5.4.30.0170.06716.44
5.4.20.0130.06716.39
5.4.10.0070.08316.09
5.4.00.0070.06315.60

preferences:
54.53 ms | 401 KiB | 5 Q