3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v3_1 = array( 'lang' => 'en', // based on client's browser user-agent 'location' => array( // based on client's IP 'countryCode' => 'DE', 'countryName' => 'Germany', 'regionName' => 'North-Rhine-Westphalia', 'cityName' => 'Cologne', ), 'headlines' => array( 'Meet someone for soccer in Cologne today!', 'Find new friends in Cologne who like soccer.', '22,449 people in Cologne want to meet new people for soccer.', ), 'img' => 'http://static.meetone.com/landing/adt/interests/soccer.jpg' ); $v3_2 = array( 'lang' => 'de', // based on client's browser user-agent 'location' => array( // based on client's IP 'countryCode' => 'DE', 'countryName' => 'Deutschland', 'regionName' => 'Bayern', 'cityName' => '', ), 'headlines' => array( 'Treffe heute noch neue Leute zum Fussball in Bayern!', 'Neue Freunde beim Fussball in Bayern finden!', '31,471 Leute in Bayern suchen gerade Leute zum Fussball.', ), 'img' => 'http://static.meetone.com/landing/adt/interests/soccer.jpg' ); print json_encode($v3_1) . PHP_EOL; print json_encode($v3_2);

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.40.0180.00418.84
8.3.30.0030.01319.10
8.3.20.0040.00420.30
8.3.10.0050.00323.53
8.3.00.0070.00020.55
8.2.170.0160.00022.96
8.2.160.0070.01120.27
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0040.00422.25
8.2.110.0060.00322.20
8.2.100.0080.00317.59
8.2.90.0030.00619.26
8.2.80.0060.00318.05
8.2.70.0130.00017.25
8.2.60.0030.00718.03
8.2.50.0100.00018.07
8.2.40.0070.00018.22
8.2.30.0000.00818.14
8.2.20.0050.00217.67
8.2.10.0000.00819.42
8.2.00.0000.00717.62
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00823.99
8.1.230.0080.00419.01
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00717.53
8.1.180.0080.00018.10
8.1.170.0000.01018.52
8.1.160.0050.00521.96
8.1.150.0000.00918.67
8.1.140.0050.00217.49
8.1.130.0040.00417.72
8.1.120.0040.00417.46
8.1.110.0000.00717.30
8.1.100.0050.00317.34
8.1.90.0040.00417.43
8.1.80.0000.00817.52
8.1.70.0040.00417.40
8.1.60.0000.00817.64
8.1.50.0040.00417.50
8.1.40.0080.00017.52
8.1.30.0030.00517.60
8.1.20.0040.00417.69
8.1.10.0000.00817.39
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0050.00317.05
8.0.280.0040.00418.34
8.0.270.0040.00417.13
8.0.260.0000.00616.82
8.0.250.0000.00616.89
8.0.240.0070.00017.00
8.0.230.0030.00316.93
8.0.220.0030.00316.79
8.0.210.0040.00416.91
8.0.200.0060.00016.94
8.0.190.0000.00816.97
8.0.180.0070.00416.99
8.0.170.0000.00716.82
8.0.160.0040.00416.86
8.0.150.0000.00716.73
8.0.140.0030.00316.75
8.0.130.0030.00313.37
8.0.120.0040.00416.83
8.0.110.0000.00716.86
8.0.100.0000.00916.70
8.0.90.0040.00416.86
8.0.80.0110.01116.87
8.0.70.0000.00716.72
8.0.60.0000.00816.82
8.0.50.0070.00016.77
8.0.30.0100.01317.09
8.0.20.0090.00817.40
8.0.10.0000.00816.97
8.0.00.0080.01116.80
7.4.330.0000.00515.00
7.4.320.0030.00616.58
7.4.300.0060.00016.43
7.4.290.0030.00316.55
7.4.280.0030.00316.43
7.4.270.0030.00316.50
7.4.260.0050.00216.56
7.4.250.0000.00816.47
7.4.240.0000.00716.45
7.4.230.0000.00716.57
7.4.220.0130.00616.50
7.4.210.0070.01116.36
7.4.200.0000.00716.36
7.4.190.0000.00816.67
7.4.160.0160.00616.47
7.4.150.0060.01017.40
7.4.140.0110.01017.86
7.4.130.0090.00916.38
7.4.120.0170.00516.43
7.4.110.0070.01016.40
7.4.100.0060.01316.51
7.4.90.0150.00316.38
7.4.80.0030.01919.39
7.4.70.0120.00616.52
7.4.60.0130.00316.43
7.4.50.0030.00316.29
7.4.40.0110.00722.77
7.4.30.0000.01616.31
7.4.00.0050.01214.91
7.3.330.0020.00213.05
7.3.320.0060.00013.04
7.3.310.0030.00316.40
7.3.300.0030.00316.20
7.3.290.0050.00916.25
7.3.280.0070.00916.26
7.3.270.0100.00717.40
7.3.260.0080.00816.36
7.3.250.0120.00816.22
7.3.240.0160.00016.31
7.3.230.0110.00616.43
7.3.210.0130.00316.45
7.3.200.0170.00319.39
7.3.190.0090.01316.27
7.3.180.0100.00616.42
7.3.170.0150.00016.27
7.3.160.0060.00916.39
7.3.120.0070.00914.59
7.3.110.0080.00814.81
7.3.100.0030.01314.73
7.3.90.0050.01014.92
7.3.80.0000.01614.71
7.3.70.0050.00614.70
7.3.60.0070.00714.77
7.3.50.0060.00614.67
7.3.40.0080.00514.69
7.3.30.0060.00814.61
7.3.20.0070.00716.59
7.3.10.0060.00916.52
7.3.00.0060.00916.63
7.2.330.0070.01016.56
7.2.320.0030.01316.15
7.2.310.0110.00616.38
7.2.300.0070.01016.75
7.2.290.0100.00716.45
7.2.250.0030.01614.78
7.2.240.0060.01114.91
7.2.230.0030.01215.12
7.2.220.0020.01014.92
7.2.210.0070.00915.05
7.2.200.0030.00814.98
7.2.190.0070.00914.96
7.2.180.0020.01214.83
7.2.170.0060.00814.89
7.2.160.0060.00914.84
7.2.150.0100.00716.88
7.2.140.0090.00616.69
7.2.130.0000.01616.51
7.2.120.0100.00716.96
7.2.110.0070.00416.88
7.2.100.0030.01416.75
7.2.90.0070.01016.91
7.2.80.0100.00716.81
7.2.70.0090.00916.82
7.2.60.0120.00316.83
7.2.50.0060.00616.89
7.2.40.0060.00916.90
7.2.30.0030.01416.84
7.2.20.0120.00316.72
7.2.10.0090.00617.08
7.2.00.0030.01018.02
7.1.330.0070.00615.61
7.1.320.0030.00715.79
7.1.310.0050.00715.85
7.1.300.0030.01115.72
7.1.290.0030.00915.85
7.1.280.0120.00315.69
7.1.270.0020.01315.68
7.1.260.0060.00615.66
7.1.250.0100.00315.71
7.1.200.0070.00415.60
7.1.100.0040.00818.18
7.1.70.0040.00416.63
7.1.60.0240.00019.29
7.1.50.0100.01016.92
7.1.00.0000.08022.40
7.0.200.0030.00616.62
7.0.140.0000.07722.04
7.0.90.0300.04019.94
7.0.80.0030.05019.96
7.0.70.0430.08019.97
7.0.60.0630.06019.93
7.0.50.0670.07720.29
7.0.40.0130.07020.13
7.0.30.0070.08020.07
7.0.20.0030.05020.15
7.0.10.0030.07020.05
7.0.00.0170.07319.99
5.6.280.0100.06721.00
5.6.240.0170.07320.60
5.6.230.0070.05020.63
5.6.220.0030.07020.61
5.6.210.0100.07020.56
5.6.200.0130.07021.02
5.6.190.0000.08321.08
5.6.180.0070.05721.03
5.6.170.0030.08321.08
5.6.160.0170.07021.13
5.6.150.0100.06021.03
5.6.140.0100.08321.10
5.6.130.0030.06321.16
5.6.120.0130.08021.07
5.6.110.0070.05321.07
5.6.100.0030.05320.98
5.6.90.0070.07320.99
5.6.80.0000.04720.38
5.6.70.0030.04720.30
5.6.60.0100.07720.28
5.6.50.0070.07320.48
5.6.40.0070.04720.38
5.6.30.0130.07320.46
5.6.20.0200.03320.38
5.6.10.0030.07720.43
5.6.00.0100.07020.27
5.5.380.0100.07020.39
5.5.370.0130.08020.35
5.5.360.0070.08320.36
5.5.350.0030.08320.33
5.5.340.0000.08720.64
5.5.330.0000.08720.86
5.5.320.0000.05320.90
5.5.310.0170.04720.90
5.5.300.0100.08320.91
5.5.290.0100.08020.87
5.5.280.0070.08320.77
5.5.270.0030.08020.82
5.5.260.0100.06720.63
5.5.250.0030.07720.46
5.5.240.0030.07320.27
5.5.230.0070.07720.02
5.5.220.0100.04720.18
5.5.210.0000.04320.11
5.5.200.0100.03720.22
5.5.190.0030.06720.23
5.5.180.0100.08320.27
5.5.160.0130.07320.27
5.5.150.0100.07020.14
5.5.140.0070.04320.12
5.5.130.0130.05020.22
5.5.120.0030.07720.16
5.5.110.0030.05020.10
5.5.100.0030.07720.16
5.5.90.0070.05720.09
5.5.80.0070.04720.12
5.5.70.0030.05720.08
5.5.60.0100.04320.05
5.5.50.0100.07320.05
5.5.40.0030.05720.08
5.5.30.0030.05020.04
5.5.20.0100.05720.04
5.5.10.0000.08320.05
5.5.00.0100.04320.07
5.4.450.0030.08719.11
5.4.440.0030.06719.37
5.4.430.0030.07719.39
5.4.420.0070.07319.36
5.4.410.0030.04319.29
5.4.400.0070.04019.05
5.4.390.0070.04319.23
5.4.380.0070.07719.10
5.4.370.0030.04719.10
5.4.360.0100.03718.81
5.4.350.0000.08019.05
5.4.340.0000.08019.09
5.4.320.0030.07719.23
5.4.310.0200.05718.81
5.4.300.0070.04319.09
5.4.290.0100.07019.14
5.4.280.0100.03718.98
5.4.270.0130.04318.89
5.4.260.0000.06019.04
5.4.250.0100.07019.02
5.4.240.0170.06718.97
5.4.230.0000.07018.82
5.4.220.0000.08018.89
5.4.210.0200.06719.12
5.4.200.0070.06718.97
5.4.190.0030.08018.77
5.4.180.0200.03318.95
5.4.170.0030.08019.11
5.4.160.0030.05319.12
5.4.150.0070.07319.03
5.4.140.0070.04316.23
5.4.130.0100.04316.32
5.4.120.0100.07016.23
5.4.110.0100.05716.38
5.4.100.0100.07016.20
5.4.90.0070.06716.30
5.4.80.0100.07316.44
5.4.70.0000.07316.32
5.4.60.0070.04016.19
5.4.50.0070.07316.30
5.4.40.0100.07016.32
5.4.30.0030.04716.23
5.4.20.0030.04716.37
5.4.10.0000.07316.41
5.4.00.0030.07015.73
5.3.290.0100.07314.63
5.3.280.0170.04014.55
5.3.270.0100.07314.59
5.3.260.0100.08014.52
5.3.250.0070.05314.57
5.3.240.0100.07314.56
5.3.230.0070.07014.46
5.3.220.0030.07714.56
5.3.210.0030.08014.53
5.3.200.0100.04714.58
5.3.190.0070.05714.48
5.3.180.0030.05014.57
5.3.170.0100.03714.52
5.3.160.0100.07014.42
5.3.150.0130.07014.40
5.3.140.0170.06714.54
5.3.130.0070.06714.57
5.3.120.0100.07314.54
5.3.110.0030.06314.53
5.3.100.0070.07313.96
5.3.90.0000.04013.89
5.3.80.0000.04314.02
5.3.70.0070.05014.00
5.3.60.0200.04713.94
5.3.50.0100.03713.81
5.3.40.0100.03713.81
5.3.30.0070.06713.90
5.3.20.0130.04713.55
5.3.10.0030.04313.65
5.3.00.0000.06713.63
5.2.170.0030.03011.13
5.2.160.0070.02711.15
5.2.150.0030.03311.14
5.2.140.0070.06010.94
5.2.130.0070.07011.14
5.2.120.0100.04710.91
5.2.110.0070.05011.15
5.2.100.0100.04711.11
5.2.90.0000.03311.10
5.2.80.0070.05011.14
5.2.70.0070.05710.93
5.2.60.0030.06010.84
5.2.50.0030.06310.94
5.2.40.0070.04010.92
5.2.30.0030.06010.93
5.2.20.0000.05310.82
5.2.10.0000.05310.88
5.2.00.0070.06310.75
5.1.60.0070.04310.00
5.1.50.0070.05710.07
5.1.40.0030.0309.97
5.1.30.0000.06010.19
5.1.20.0070.06310.41
5.1.10.0070.0279.95
5.1.00.0000.07010.05
5.0.50.0000.0308.61
5.0.40.0070.0378.39
5.0.30.0070.0478.25
5.0.20.0000.0478.27
5.0.10.0030.0408.16
5.0.00.0030.0408.14
4.4.90.0070.0307.75
4.4.80.0070.0277.75
4.4.70.0030.0377.75
4.4.60.0000.0307.75
4.4.50.0000.0237.75
4.4.40.0130.0477.75
4.4.30.0030.0177.75
4.4.20.0000.0237.75
4.4.10.0000.0237.75
4.4.00.0100.0477.75
4.3.110.0100.0277.75
4.3.100.0030.0337.75
4.3.90.0070.0307.75
4.3.80.0030.0307.75
4.3.70.0100.0277.75
4.3.60.0030.0137.75
4.3.50.0000.0407.75
4.3.40.0030.0407.75
4.3.30.0000.0277.75
4.3.20.0000.0177.75
4.3.10.0030.0237.75
4.3.00.0000.0207.75

preferences:
40.47 ms | 400 KiB | 5 Q