3v4l.org

run code in 300+ PHP versions simultaneously
<?php //creating $arr = ['name' => "Jasein"]; $arrOldWay = array('name' => "Jasein");//same thing as above class Blah{ public $name = 'Jasein'; } $obj = new Blah(); //accessing echo $arr ['name'] . "\n"; echo $arrOldWay ['name'] . "\n"; echo $obj->name . "\n";

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.0100.00518.39
8.3.50.0040.01816.50
8.3.40.0060.00918.90
8.3.30.0070.00718.68
8.3.20.0080.00020.73
8.3.10.0000.00821.87
8.3.00.0030.00718.77
8.2.180.0090.00916.63
8.2.170.0140.00322.96
8.2.160.0100.00321.03
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0050.00319.77
8.2.120.0040.00426.35
8.2.110.0040.00722.08
8.2.100.0110.00018.06
8.2.90.0000.00819.95
8.2.80.0040.00417.97
8.2.70.0000.00917.93
8.2.60.0000.01118.18
8.2.50.0060.00318.10
8.2.40.0040.00419.27
8.2.30.0080.00019.37
8.2.20.0000.00718.12
8.2.10.0070.00019.14
8.2.00.0040.00418.36
8.1.280.0070.01325.92
8.1.270.0080.00023.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.55
8.1.230.0040.00820.94
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00517.13
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0070.00018.77
8.1.150.0070.00018.87
8.1.140.0040.00417.45
8.1.130.0040.00417.36
8.1.120.0070.00017.52
8.1.110.0000.00817.43
8.1.100.0070.00317.35
8.1.90.0070.00017.38
8.1.80.0000.00717.35
8.1.70.0000.00917.43
8.1.60.0030.00617.46
8.1.50.0040.00417.45
8.1.40.0090.00017.58
8.1.30.0000.01117.68
8.1.20.0040.00417.59
8.1.10.0070.00017.59
8.1.00.0000.00917.53
8.0.300.0040.00419.73
8.0.290.0030.00616.75
8.0.280.0030.00318.44
8.0.270.0030.00316.76
8.0.260.0040.00416.80
8.0.250.0000.00716.96
8.0.240.0080.00016.83
8.0.230.0000.00716.93
8.0.220.0030.00316.79
8.0.210.0070.00016.81
8.0.200.0000.00716.88
8.0.190.0000.00716.94
8.0.180.0040.00416.92
8.0.170.0090.00016.94
8.0.160.0030.00516.77
8.0.150.0080.00416.82
8.0.140.0030.00316.84
8.0.130.0050.00013.40
8.0.120.0040.00416.89
8.0.110.0040.00416.91
8.0.100.0000.00716.82
8.0.90.0070.00016.77
8.0.80.0060.00916.95
8.0.70.0040.00416.91
8.0.60.0000.00716.70
8.0.50.0000.00716.77
8.0.30.0120.00616.93
8.0.20.0190.00017.12
8.0.10.0040.00417.00
8.0.00.0110.00916.76
7.4.330.0050.00016.84
7.4.320.0000.00616.43
7.4.300.0030.00316.50
7.4.290.0030.00316.55
7.4.280.0050.00316.52
7.4.270.0000.00716.51
7.4.260.0050.00316.52
7.4.250.0030.00316.51
7.4.240.0000.00816.36
7.4.230.0000.00816.57
7.4.220.0040.00416.44
7.4.210.0100.00416.41
7.4.200.0040.00416.19
7.4.160.0090.00616.50
7.4.140.0080.01517.86
7.4.130.0090.01516.52
7.4.120.0200.00316.45
7.4.110.0030.01316.51
7.4.100.0060.01116.44
7.4.90.0060.01216.71
7.4.80.0110.00819.39
7.4.70.0080.00916.54
7.4.60.0110.01116.41
7.4.50.0040.01116.40
7.4.40.0090.00916.58
7.4.00.0070.00815.08
7.3.330.0030.00313.33
7.3.320.0030.00313.17
7.3.310.0070.00016.17
7.3.300.0000.00716.17
7.3.290.0000.00716.16
7.3.280.0030.01316.31
7.3.260.0080.00916.42
7.3.240.0110.00916.32
7.3.230.0140.00316.21
7.3.210.0040.01416.32
7.3.200.0080.00916.41
7.3.190.0140.00716.27
7.3.180.0120.00916.47
7.3.170.0060.01216.49
7.3.160.0110.00416.33
7.3.120.0100.00714.68
7.3.110.0060.01314.77
7.3.100.0100.01014.47
7.3.90.0070.00714.87
7.3.80.0070.00315.09
7.3.70.0030.00714.63
7.3.60.0080.00514.68
7.3.50.0100.00314.93
7.3.40.0080.00014.87
7.3.30.0060.00914.66
7.3.20.0420.00715.50
7.3.10.0410.00315.52
7.3.00.0370.00515.52
7.2.330.0130.00616.31
7.2.320.0060.01816.45
7.2.310.0120.00416.53
7.2.300.0030.01516.77
7.2.290.0100.01316.56
7.2.250.0070.01115.27
7.2.240.0120.00914.97
7.2.230.0000.01515.21
7.2.220.0080.00815.30
7.2.210.0040.01115.02
7.2.200.0030.01015.07
7.2.190.0060.00615.21
7.2.180.0060.00915.21
7.2.170.0070.00714.99
7.2.160.0060.00814.80
7.2.150.0330.00815.97
7.2.140.0890.00315.93
7.2.130.0360.00816.09
7.2.120.0430.00615.97
7.2.110.0430.00715.93
7.2.100.0420.00515.87
7.2.90.0320.00915.93
7.2.80.0290.00815.93
7.2.70.0330.00815.80
7.2.60.0380.01016.04
7.2.50.0300.01015.84
7.2.40.0370.00515.91
7.2.30.0400.01015.96
7.2.20.0370.00215.78
7.2.10.0250.01015.80
7.2.00.0430.00615.83
7.1.330.0180.00015.64
7.1.320.0080.00315.86
7.1.310.0040.00815.76
7.1.300.0030.00715.64
7.1.290.0070.00715.63
7.1.280.0070.00415.54
7.1.270.0380.00514.98
7.1.260.0420.00714.61
7.1.250.0400.00514.72
7.1.240.0090.00615.55
7.1.230.0060.00615.63
7.1.220.0110.00415.81
7.1.210.0070.00315.55
7.1.200.0070.00715.57
7.1.190.0040.00816.02
7.1.180.0040.00715.82
7.1.170.0090.00315.86
7.1.160.0060.00615.78
7.1.150.0000.01515.65
7.1.140.0100.00715.59
7.1.130.0040.01215.48
7.1.120.0050.00515.76
7.1.110.0040.01115.71
7.1.100.0050.00515.82
7.1.90.0000.01415.79
7.1.80.0030.00615.78
7.1.70.0090.00315.61
7.1.60.0070.01015.92
7.1.50.0070.00715.82
7.1.40.0030.01015.75
7.1.30.0000.01415.64
7.1.20.0070.00715.77
7.1.10.0030.00615.42
7.1.00.0060.00615.89

preferences:
48.25 ms | 401 KiB | 5 Q