3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getSomeArray(){ return ['a' => 34]; } function getSomeObject(){ $x = new StdClass(); $x->blah = 42; return $x; } // you don't need to 'prepare' anything, you will get exactly what those two functions above return. $a = getSomeArray(); var_dump($a); $b = getSomeObject(); var_dump($b);

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.0120.00316.63
8.3.60.0060.00918.56
8.3.50.0100.01017.93
8.3.40.0130.00318.70
8.3.30.0070.00718.75
8.3.20.0050.00221.91
8.3.10.0040.00423.36
8.3.00.0040.00423.66
8.2.180.0110.00716.75
8.2.170.0040.01122.96
8.2.160.0140.00320.14
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0060.00322.01
8.2.100.0080.00417.64
8.2.90.0030.00517.91
8.2.80.0000.00817.97
8.2.70.0030.00617.91
8.2.60.0000.00718.09
8.2.50.0040.00418.10
8.2.40.0000.00819.39
8.2.30.0000.00719.06
8.2.20.0040.00417.97
8.2.10.0080.00019.07
8.2.00.0040.00419.26
8.1.280.0190.00025.92
8.1.270.0030.00518.82
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.18
8.1.230.0000.01322.61
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00717.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00518.51
8.1.160.0000.00718.71
8.1.150.0030.00518.83
8.1.140.0040.00420.66
8.1.130.0000.00720.11
8.1.120.0000.00717.35
8.1.110.0000.00717.41
8.1.100.0080.00017.32
8.1.90.0050.00217.46
8.1.80.0050.00217.41
8.1.70.0030.00317.45
8.1.60.0070.00017.62
8.1.50.0060.00317.41
8.1.40.0020.00517.41
8.1.30.0040.00417.67
8.1.20.0000.00817.48
8.1.10.0060.00617.39
8.1.00.0050.00317.45
8.0.300.0000.00719.73
8.0.290.0000.00816.58
8.0.280.0030.00318.39
8.0.270.0000.00717.07
8.0.260.0000.01018.44
8.0.250.0030.00316.86
8.0.240.0080.00016.79
8.0.230.0070.00016.88
8.0.220.0000.00716.87
8.0.210.0040.00416.84
8.0.200.0000.00716.89
8.0.190.0000.00716.87
8.0.180.0000.00816.82
8.0.170.0060.00316.77
8.0.160.0000.00716.87
8.0.150.0040.00416.66
8.0.140.0030.00416.75
8.0.130.0060.00013.30
8.0.120.0040.00416.78
8.0.110.0070.00016.81
8.0.100.0090.00016.63
8.0.90.0070.00016.66
8.0.80.0090.00616.86
8.0.70.0050.00216.80
8.0.60.0040.00416.80
8.0.50.0020.00516.69
8.0.30.0120.00517.03
8.0.20.0110.00717.26
8.0.10.0000.00716.99
8.0.00.0060.01116.64
7.4.330.0000.00515.55
7.4.320.0030.00316.38
7.4.300.0030.00316.61
7.4.290.0040.00416.52
7.4.280.0040.00416.61
7.4.270.0050.00516.52
7.4.260.0000.00716.50
7.4.250.0080.00016.61
7.4.240.0030.00316.49
7.4.230.0040.00416.60
7.4.220.0030.00516.67
7.4.210.0030.01416.61
7.4.200.0030.00316.66
7.4.160.0090.00816.40
7.4.140.0100.00917.86
7.4.130.0120.00616.45
7.4.120.0100.00716.48
7.4.110.0110.01116.47
7.4.100.0090.01116.52
7.4.90.0090.00916.54
7.4.80.0140.00819.39
7.4.70.0100.00716.57
7.4.60.0070.01016.38
7.4.50.0030.01416.45
7.4.40.0110.01116.36
7.4.00.0060.01114.83
7.3.330.0000.00513.24
7.3.320.0000.00613.04
7.3.310.0030.00416.11
7.3.300.0000.00616.25
7.3.290.0030.00316.25
7.3.280.0080.00716.21
7.3.260.0090.00916.39
7.3.240.0100.00716.48
7.3.230.0150.00316.29
7.3.210.0110.00716.20
7.3.200.0100.00716.24
7.3.190.0130.00616.33
7.3.180.0060.01116.30
7.3.170.0030.02016.51
7.3.160.0090.00916.22
7.3.120.0070.01014.57
7.3.110.0030.01414.74
7.3.100.0060.00714.56
7.3.90.0060.00614.51
7.3.80.0020.00914.63
7.3.70.0080.00814.82
7.3.60.0050.00514.80
7.3.50.0060.00814.68
7.3.40.0100.00314.53
7.3.30.0000.00814.68
7.3.20.0050.00716.47
7.3.10.0790.00715.61
7.3.00.0480.00816.01
7.2.330.0070.01116.67
7.2.320.0060.01216.59
7.2.310.0100.00716.44
7.2.300.0060.01016.66
7.2.290.0160.00316.58
7.2.250.0150.00314.93
7.2.240.0050.01115.01
7.2.230.0070.00814.73
7.2.220.0090.00714.95
7.2.210.0070.00415.05
7.2.200.0070.00714.84
7.2.190.0070.00614.96
7.2.180.0000.01314.80
7.2.170.0060.00814.87
7.2.160.0040.00414.78
7.2.150.0030.00916.95
7.2.140.0000.01416.74
7.2.130.0530.00315.74
7.2.120.0540.00515.79
7.2.110.0050.00815.85
7.2.100.0200.00315.81
7.2.90.0280.00315.78
7.2.80.0600.00316.13
7.2.70.0190.00515.86
7.2.60.0020.01015.98
7.2.50.0090.00415.78
7.2.40.0110.00915.91
7.2.30.0470.00815.89
7.2.20.0550.00715.90
7.2.10.0490.00315.79
7.2.00.0010.01315.81
7.1.330.0100.00715.52
7.1.320.0050.00715.75
7.1.310.0040.01215.58
7.1.300.0060.00815.75
7.1.290.0070.00515.77
7.1.280.0040.00915.73
7.1.270.0070.00515.74
7.1.260.0050.00815.65
7.1.250.0150.00214.81

preferences:
59.79 ms | 401 KiB | 5 Q