3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = array( "status" => "1", "message" => "Successfully login", "user" => array( 'user_id' => "12313215", "user_email" => "email@jon", "user_fname" => "fname", "user_lname" => "=lastname" ) ); echo json_encode($response);

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.01018.14
8.3.50.0140.00521.99
8.3.40.0090.00618.77
8.3.30.0090.00618.62
8.3.20.0060.00318.65
8.3.10.0040.00420.92
8.3.00.0050.00321.78
8.2.180.0110.00416.63
8.2.170.0050.00922.96
8.2.160.0090.00920.53
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00021.13
8.2.110.0030.00620.47
8.2.100.0040.00717.91
8.2.90.0030.00619.05
8.2.80.0000.00718.03
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0050.00218.03
8.2.30.0050.00219.41
8.2.20.0030.00617.64
8.2.10.0000.00717.66
8.2.00.0090.00017.59
8.1.280.0060.00925.92
8.1.270.0000.00723.99
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.26
8.1.230.0040.00720.85
8.1.220.0040.00418.77
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0080.00018.52
8.1.160.0000.00718.79
8.1.150.0030.00718.50
8.1.140.0040.00417.37
8.1.130.0000.00717.80
8.1.120.0070.00017.38
8.1.110.0000.00717.39
8.1.100.0040.00417.31
8.1.90.0000.00717.38
8.1.80.0070.00017.28
8.1.70.0030.00317.39
8.1.60.0000.00817.56
8.1.50.0080.00017.43
8.1.40.0040.00417.32
8.1.30.0070.00017.54
8.1.20.0040.00417.56
8.1.10.0040.00417.55
8.1.00.0100.00017.34
8.0.300.0060.00319.88
8.0.290.0000.00817.04
8.0.280.0000.00718.42
8.0.270.0000.00817.22
8.0.260.0000.00716.86
8.0.250.0040.00416.90
8.0.240.0030.01016.83
8.0.230.0040.00416.91
8.0.220.0040.00316.76
8.0.210.0000.00716.80
8.0.200.0030.00616.94
8.0.190.0000.00716.83
8.0.180.0000.00816.81
8.0.170.0040.00416.75
8.0.160.0000.00716.89
8.0.150.0040.00416.77
8.0.140.0080.00016.79
8.0.130.0030.00313.17
8.0.120.0030.00516.84
8.0.110.0000.00716.72
8.0.100.0040.00416.68
8.0.90.0030.00516.73
8.0.80.0100.00716.86
8.0.70.0070.00016.75
8.0.60.0000.00716.85
8.0.50.0000.00716.70
8.0.30.0080.01016.76
8.0.20.0130.00517.40
8.0.10.0040.00416.75
8.0.00.0060.01216.67
7.4.330.0000.00516.71
7.4.320.0040.00416.42
7.4.300.0000.00716.31
7.4.290.0040.00416.52
7.4.280.0030.00316.52
7.4.270.0000.00716.37
7.4.260.0000.00613.16
7.4.250.0030.00516.40
7.4.240.0000.00716.36
7.4.230.0070.00016.61
7.4.220.0070.02016.56
7.4.210.0100.00616.41
7.4.200.0000.00716.50
7.4.190.0030.00316.56
7.4.160.0160.00616.47
7.4.150.0120.00917.40
7.4.140.0070.01017.86
7.4.130.0100.00816.38
7.4.120.0100.00816.31
7.4.110.0030.02016.31
7.4.100.0060.01616.41
7.4.90.0100.00716.25
7.4.80.0080.00819.39
7.4.70.0030.01416.48
7.4.60.0070.01416.39
7.4.50.0000.00416.56
7.4.40.0070.01122.77
7.4.30.0070.01016.57
7.4.00.0060.01014.99
7.3.330.0050.00013.05
7.3.320.0030.00312.87
7.3.310.0030.00316.18
7.3.300.0030.00316.07
7.3.290.0000.01516.14
7.3.280.0050.01116.12
7.3.270.0060.01217.40
7.3.260.0080.01318.24
7.3.250.0100.01016.32
7.3.240.0120.00616.22
7.3.230.0030.01316.39
7.3.210.0070.01016.52
7.3.200.0060.01019.39
7.3.190.0030.01316.34
7.3.180.0160.00416.53
7.3.170.0100.00616.27
7.3.160.0160.00016.43
7.3.120.0070.00714.75
7.3.00.0090.00616.32
7.2.330.0060.01216.29
7.2.320.0070.01116.55
7.2.310.0120.00616.53
7.2.300.0060.01416.52
7.2.290.0060.00916.42
7.2.130.0090.00616.56
7.2.120.0090.00316.80
7.2.110.0030.00816.50
7.2.100.0080.00416.88
7.2.90.0080.00417.02
7.2.80.0090.00616.69
7.2.70.0030.00916.66
7.2.60.0090.00316.77
7.2.50.0100.00716.84
7.2.40.0070.00716.76
7.2.30.0000.01516.84
7.2.20.0070.00716.66
7.2.10.0080.01116.66
7.2.00.0080.00717.85
7.1.250.0040.00915.71
7.1.240.0030.01015.67
7.1.230.0040.00815.48
7.1.220.0030.00715.71
7.1.210.0120.00315.67
7.1.200.0030.01015.58
7.1.190.0110.00315.70
7.1.180.0000.01615.79
7.1.170.0050.00515.61
7.1.160.0050.00515.61
7.1.150.0040.00815.52
7.1.140.0100.00315.49
7.1.130.0000.01215.63
7.1.120.0040.00815.67
7.1.110.0070.00715.41
7.1.100.0080.00616.91
7.1.90.0060.00315.66
7.1.80.0040.00815.52
7.1.70.0030.00816.49
7.1.60.0070.01217.46
7.1.50.0080.00916.26
7.1.40.0100.00315.56
7.1.30.0100.00315.64
7.1.20.0090.00315.50
7.1.10.0030.01015.72
7.1.00.0030.02019.14
7.0.330.0040.00715.27
7.0.320.0040.00415.04
7.0.310.0070.00715.32
7.0.300.0030.00915.21
7.0.290.0000.01415.31
7.0.280.0000.00815.29
7.0.270.0060.00315.36
7.0.260.0040.00715.50
7.0.250.0080.00415.19
7.0.240.0040.00715.20
7.0.230.0060.00615.29
7.0.220.0030.01015.17
7.0.210.0030.01015.49
7.0.200.0040.00715.92
7.0.190.0070.00715.26
7.0.180.0030.00615.26
7.0.170.0030.00615.36
7.0.160.0040.00815.48
7.0.150.0110.00415.43
7.0.140.0050.03818.75
7.0.130.0120.00315.29
7.0.120.0060.00615.51
7.0.110.0100.00314.94
7.0.100.0060.00615.34
7.0.90.0340.04517.70
7.0.80.0290.01917.58
7.0.70.0300.04917.67
7.0.60.0350.04217.69
7.0.50.0360.04317.73
7.0.40.0060.04616.77
7.0.30.0050.04116.65
7.0.20.0110.04316.64
7.0.10.0070.04316.78
7.0.00.0070.04316.64
5.6.380.0040.01114.18
5.6.370.0080.00414.18
5.6.360.0050.00814.14
5.6.350.0060.00314.30
5.6.340.0110.00314.11
5.6.330.0040.00414.35
5.6.320.0090.00014.55
5.6.310.0060.00314.24
5.6.300.0100.00314.45
5.6.290.0110.00414.28
5.6.280.0120.03317.58
5.6.270.0060.00614.34
5.6.260.0060.00614.40
5.6.250.0060.00614.21
5.6.240.0070.04717.39
5.6.230.0120.02617.59
5.6.220.0070.04217.43
5.6.210.0090.04017.38
5.6.200.0090.04017.72
5.6.190.0050.02817.67
5.6.180.0150.03217.61
5.6.170.0080.03817.64
5.6.160.0060.04517.66
5.6.150.0070.03817.68
5.6.140.0100.04717.66
5.6.130.0080.02817.66
5.6.120.0070.04417.74
5.6.110.0050.03717.70
5.6.100.0050.04317.63
5.6.90.0080.04017.36
5.6.80.0050.04617.31
5.6.70.0050.03417.19
5.6.60.0080.03717.08
5.6.50.0080.04017.23
5.6.40.0080.03517.34
5.6.30.0050.04117.21
5.6.20.0050.04217.25
5.6.10.0030.03317.18
5.6.00.0070.02017.30
5.5.380.0040.04415.75
5.5.370.0100.03615.76
5.5.360.0030.04515.63
5.5.350.0080.03315.80
5.5.340.0040.04915.87
5.5.330.0020.02715.96
5.5.320.0000.05115.92
5.5.310.0020.03915.80
5.5.300.0030.04515.81
5.5.290.0070.03915.95
5.5.280.0050.03015.98
5.5.270.0020.05015.83
5.5.260.0030.04315.96
5.5.250.0030.04015.74
5.5.240.0040.03615.47
5.5.230.0060.04115.53
5.5.220.0030.04015.58
5.5.210.0020.04315.55
5.5.200.0040.04215.54
5.5.190.0050.04415.54
5.5.180.0030.04015.57
5.5.170.0000.01010.89
5.5.160.0050.02715.43
5.5.150.0020.04315.55
5.5.140.0080.04015.50
5.5.130.0070.03215.56
5.5.120.0070.02215.59
5.5.110.0100.02515.61
5.5.100.0070.02215.62
5.5.90.0080.02715.55
5.5.80.0020.02915.36
5.5.70.0040.04115.42
5.5.60.0040.03015.49
5.5.50.0050.02915.63
5.5.40.0050.04315.54
5.5.30.0080.03815.45
5.5.20.0050.04115.42
5.5.10.0090.02715.44
5.5.00.0040.03015.38
5.4.450.0090.04215.08
5.4.440.0050.02815.10
5.4.430.0070.04215.04
5.4.420.0030.04215.01
5.4.410.0020.04615.08
5.4.400.0070.02714.87
5.4.390.0020.04214.82
5.4.380.0050.04214.79
5.4.370.0020.03114.89
5.4.360.0030.04214.83
5.4.350.0070.04214.93
5.4.340.0100.03915.02
5.4.330.0060.00310.92
5.4.320.0060.03814.80
5.4.310.0090.03814.74
5.4.300.0020.03615.02
5.4.290.0020.02714.93
5.4.280.0030.03314.94
5.4.270.0060.02615.00
5.4.260.0050.02914.89
5.4.250.0060.02114.81
5.4.240.0070.03214.93
5.4.230.0080.04114.88
5.4.220.0100.03615.09
5.4.210.0060.03114.92
5.4.200.0070.04214.87
5.4.190.0050.03314.98
5.4.180.0060.04114.81
5.4.170.0030.04815.13
5.4.160.0030.04014.95
5.4.150.0030.03914.79
5.4.140.0050.04013.58
5.4.130.0070.04013.57
5.4.120.0110.02313.55
5.4.110.0020.04513.53
5.4.100.0030.03513.62
5.4.90.0130.03013.61
5.4.80.0070.03713.69
5.4.70.0070.03813.52
5.4.60.0000.02413.47
5.4.50.0050.03513.54
5.4.40.0060.04013.60
5.4.30.0050.03413.56
5.4.20.0040.03713.59
5.4.10.0000.04413.62
5.4.00.0070.03813.35
5.3.290.0050.03912.49
5.3.280.0050.03812.40
5.3.270.0070.03012.54
5.3.260.0020.04312.42
5.3.250.0080.03812.54
5.3.240.0080.02312.41
5.3.230.0070.04012.34
5.3.220.0030.04212.40
5.3.210.0070.03912.37
5.3.200.0080.03512.38
5.3.190.0050.03512.43
5.3.180.0070.03812.51
5.3.170.0000.03112.43
5.3.160.0090.01712.44
5.3.150.0050.04312.53
5.3.140.0030.02112.50
5.3.130.0080.04012.44
5.3.120.0060.04312.37
5.3.110.0030.04512.49
5.3.100.0020.04012.21
5.3.90.0010.04312.14
5.3.80.0030.03612.13
5.3.70.0060.03912.19
5.3.60.0050.04312.27
5.3.50.0090.03712.07
5.3.40.0000.03012.09
5.3.30.0080.03612.08
5.3.20.0100.03411.94
5.3.10.0040.02011.90
5.3.00.0020.04011.93
5.2.170.0030.03610.58
5.2.160.0060.03010.65
5.2.150.0080.02910.69
5.2.140.0030.03410.68
5.2.130.0040.02910.66
5.2.120.0030.03510.67
5.2.110.0020.03710.60
5.2.100.0070.02310.63
5.2.90.0070.02510.68
5.2.80.0020.03410.68
5.2.70.0070.03110.65
5.2.60.0050.02310.66
5.2.50.0030.03310.63
5.2.40.0050.01810.51
5.2.30.0030.02510.60
5.2.20.0040.02810.57
5.2.10.0030.03010.58
5.2.00.0070.02810.46
5.1.60.0050.02810.10
5.1.50.0060.02710.14
5.1.40.0030.02510.11
5.1.30.0070.02210.26
5.1.20.0010.03310.25
5.1.10.0070.02010.17
5.1.00.0040.02010.07
5.0.50.0030.0239.39
5.0.40.0000.0269.33
5.0.30.0030.0339.27
5.0.20.0050.0209.21
5.0.10.0050.0189.12
5.0.00.0070.0329.24
4.4.90.0010.0158.74
4.4.80.0020.0188.74
4.4.70.0020.0188.74
4.4.60.0000.0238.74
4.4.50.0070.0158.74
4.4.40.0020.0308.74
4.4.30.0060.0158.74
4.4.20.0020.0188.74
4.4.10.0030.0158.74
4.4.00.0020.0288.74
4.3.110.0020.0208.74
4.3.100.0010.0158.74
4.3.90.0000.0198.74
4.3.80.0000.0298.74
4.3.70.0020.0208.74
4.3.60.0020.0208.74
4.3.50.0030.0188.74
4.3.40.0030.0228.74
4.3.30.0000.0228.74
4.3.20.0000.0238.74
4.3.10.0030.0188.74
4.3.00.0020.0188.74

preferences:
46.01 ms | 401 KiB | 5 Q