3v4l.org

run code in 300+ PHP versions simultaneously
<?php $superheroes = array( "spider-man" => array( "name" => "Peter Parker", "email" => "peterparker@mail.com", ), "super-man" => array( "name" => "Clark Kent", "email" => "clarkkent@mail.com", ), "iron-man" => array( "name" => "Harry Potter", "email" => "harrypotter@mail.com", ) ); print_r($superheroes); print_r($superheroes[spider-man]);

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.0150.00616.88
8.3.50.0170.00016.30
8.3.40.0030.01418.88
8.3.30.0140.00018.67
8.3.20.0040.00420.29
8.3.10.0040.00423.64
8.3.00.0040.00421.85
8.2.180.0120.00318.29
8.2.170.0120.00822.96
8.2.160.0140.00020.34
8.2.150.0070.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00420.98
8.2.120.0070.00026.35
8.2.110.0070.00419.33
8.2.100.0040.00817.80
8.2.90.0090.00019.08
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0050.00317.93
8.2.50.0030.00618.09
8.2.40.0040.00422.38
8.2.30.0020.00519.32
8.2.20.0000.00717.68
8.2.10.0000.00718.14
8.2.00.0000.00717.99
8.1.280.0140.00325.92
8.1.270.0060.00622.13
8.1.260.0030.00628.09
8.1.250.0070.00028.09
8.1.240.0030.00619.21
8.1.230.0070.00419.14
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0050.00318.42
8.1.160.0040.00420.68
8.1.150.0070.00018.88
8.1.140.0080.00019.56
8.1.130.0050.00217.74
8.1.120.0000.00717.43
8.1.110.0050.00217.45
8.1.100.0000.00717.50
8.1.90.0030.00617.46
8.1.80.0070.00017.48
8.1.70.0040.00417.45
8.1.60.0040.00417.55
8.1.50.0060.00317.51
8.1.40.0040.00417.54
8.1.30.0000.00917.48
8.1.20.0080.00017.53
8.1.10.0050.00217.47
8.1.00.0070.00017.52
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00618.37
8.0.270.0000.00817.20
8.0.260.0000.00618.37
8.0.250.0030.00316.89
8.0.240.0030.00516.94
8.0.230.0000.00716.91
8.0.220.0070.00016.95
8.0.210.0000.00716.83
8.0.200.0050.00217.02
8.0.190.0030.00617.04
8.0.180.0030.00616.87
8.0.170.0000.00816.99
8.0.160.0050.00317.00
8.0.150.0040.00416.89
8.0.140.0070.00016.85
8.0.130.0000.00713.38
8.0.120.0000.00816.90
8.0.110.0070.00016.93
8.0.100.0040.00416.88
8.0.90.0030.00616.96
8.0.80.0120.00616.97
8.0.70.0000.00716.91
8.0.60.0040.00416.95
8.0.50.0000.00716.79
8.0.30.0050.01417.31
8.0.20.0120.00817.40
8.0.10.0040.00417.13
8.0.00.0090.00816.72
7.4.330.0030.00316.66
7.4.320.0000.00616.64
7.4.300.0030.00316.41
7.4.290.0000.00716.42
7.4.280.0000.00816.49
7.4.270.0040.00416.48
7.4.260.0000.00716.58
7.4.250.0080.00016.55
7.4.240.0000.00716.60
7.4.230.0030.00316.57
7.4.220.0060.01416.36
7.4.210.0080.00916.52
7.4.200.0070.00016.68
7.4.160.0090.00616.36
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0120.00916.61
7.4.120.0070.01016.65
7.4.110.0150.00316.59
7.4.100.0030.01716.39
7.4.90.0120.00616.62
7.4.80.0060.00919.39
7.4.70.0030.01316.52
7.4.60.0080.00816.45
7.4.50.0070.00616.44
7.4.40.0060.01516.65
7.4.30.0060.01716.34
7.4.00.0070.01114.68
7.3.330.0000.00513.16
7.3.320.0070.00013.18
7.3.310.0050.00216.25
7.3.300.0030.00316.24
7.3.290.0050.00316.23
7.3.280.0090.00816.29
7.3.270.0070.01017.40
7.3.260.0120.00616.30
7.3.240.0140.00516.33
7.3.230.0090.00916.55
7.3.210.0080.00816.20
7.3.200.0100.00719.39
7.3.190.0070.01016.38
7.3.180.0100.00716.35
7.3.170.0100.00716.45
7.3.160.0050.01116.33
7.2.330.0130.00616.52
7.2.320.0040.01416.22
7.2.310.0070.01116.46
7.2.300.0140.00316.41
7.2.290.0110.01116.56
7.2.60.0070.00716.46
7.2.00.0060.00619.18
7.1.200.0070.00715.71
7.1.100.0290.00318.05
7.1.70.0080.00317.23
7.1.60.0100.01419.40
7.1.50.0160.00616.63
7.1.00.0030.07722.40
7.0.200.0030.00516.66
7.0.60.0330.07721.74
7.0.50.0030.04017.86
7.0.40.0070.06720.27
7.0.30.0200.06020.30
7.0.20.0170.04020.22
7.0.10.0000.04720.09
7.0.00.0030.05720.20
5.6.210.0030.04020.62
5.6.200.0030.07018.07
5.6.190.0100.06320.33
5.6.180.0170.08020.41
5.6.170.0270.08320.51
5.6.160.0100.03720.46
5.6.150.0030.05718.18
5.6.140.0170.06718.18
5.6.130.0070.07318.22
5.6.120.0070.06021.12
5.6.110.0000.09020.96
5.6.100.0070.09021.02
5.6.90.0030.05721.13
5.6.80.0170.07720.34
5.5.350.0230.08020.41
5.5.340.0070.05317.98
5.5.330.0130.07720.57
5.5.320.0230.05320.20
5.5.310.0270.08020.30
5.5.300.0000.05718.01
5.5.290.0070.08018.02
5.5.280.0030.05320.68
5.5.270.0030.06320.66
5.5.260.0030.04020.86
5.5.250.0100.07720.61
5.5.240.0200.03320.16

preferences:
53.08 ms | 400 KiB | 5 Q