3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'success' => "Sweet", 'failure' => false, 'array' => array(), 'numbers' => array(1,2,3), 'info' => array( 'name' => 'Binny', 'site' => 'http://www.openjs.com/' ) ); $json = json_encode($data); echo $json;

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.0110.00718.27
8.3.60.0070.00716.38
8.3.50.0120.00721.93
8.3.40.0150.00018.59
8.3.30.0070.00718.96
8.3.20.0040.00420.21
8.3.10.0030.00623.61
8.3.00.0040.00420.96
8.2.180.0120.00318.30
8.2.170.0140.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00626.16
8.2.120.0000.00722.26
8.2.110.0070.00321.03
8.2.100.0000.01117.78
8.2.90.0100.00019.21
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0030.00518.10
8.2.40.0000.00720.59
8.2.30.0040.00418.11
8.2.20.0040.00417.70
8.2.10.0000.00717.77
8.2.00.0040.00417.71
8.1.280.0110.00425.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.69
8.1.230.0090.00317.42
8.1.220.0030.00517.77
8.1.210.0030.00618.77
8.1.200.0050.00517.23
8.1.190.0040.00419.29
8.1.180.0040.00418.10
8.1.170.0040.00418.37
8.1.160.0000.00722.14
8.1.150.0040.00418.63
8.1.140.0040.00417.29
8.1.130.0030.00317.72
8.1.120.0070.00017.39
8.1.110.0050.00317.32
8.1.100.0040.00417.42
8.1.90.0000.00717.40
8.1.80.0000.00717.43
8.1.70.0070.00017.34
8.1.60.0040.00417.44
8.1.50.0080.00017.35
8.1.40.0000.00817.33
8.1.30.0040.00417.55
8.1.20.0040.00417.48
8.1.10.0040.00417.39
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.35
8.0.270.0030.00317.25
8.0.260.0040.00416.86
8.0.250.0000.00716.86
8.0.240.0040.00416.91
8.0.230.0000.00616.88
8.0.220.0000.00816.86
8.0.210.0030.00316.78
8.0.200.0030.00316.93
8.0.190.0060.00316.88
8.0.180.0000.00716.73
8.0.170.0000.00716.86
8.0.160.0000.00816.71
8.0.150.0040.00416.66
8.0.140.0000.00716.70
8.0.130.0000.00613.25
8.0.120.0070.00016.70
8.0.110.0000.00716.84
8.0.100.0000.00716.81
8.0.90.0070.00016.76
8.0.80.0110.00316.79
8.0.70.0070.00016.88
8.0.60.0080.00016.86
8.0.50.0040.00416.88
8.0.30.0170.00516.94
8.0.20.0080.01017.40
8.0.10.0040.00416.80
8.0.00.0110.01016.77
7.4.330.0020.00215.00
7.4.320.0060.00016.37
7.4.300.0030.00316.41
7.4.290.0030.00316.36
7.4.280.0000.00816.42
7.4.270.0030.00316.35
7.4.260.0070.00016.41
7.4.250.0040.00416.34
7.4.240.0000.00716.48
7.4.230.0000.00716.53
7.4.220.0070.00816.41
7.4.210.0040.01216.53
7.4.200.0030.00616.43
7.4.190.0000.00716.63
7.4.160.0060.01116.38
7.4.150.0090.00917.40
7.4.140.0140.00317.86
7.4.130.0100.00716.34
7.4.120.0050.01316.35
7.4.110.0070.01016.63
7.4.100.0090.00916.24
7.4.90.0130.00316.29
7.4.80.0130.00619.39
7.4.70.0030.01316.39
7.4.60.0150.00316.45
7.4.50.0030.00516.36
7.4.40.0060.00622.77
7.4.30.0160.00016.44
7.4.00.0070.00714.76
7.3.330.0000.00613.02
7.3.320.0050.00013.11
7.3.310.0030.00316.14
7.3.300.0000.00616.21
7.3.290.0120.00316.16
7.3.280.0110.00716.24
7.3.270.0070.01017.40
7.3.260.0060.01116.22
7.3.250.0100.00716.32
7.3.240.0100.00616.23
7.3.230.0070.01016.39
7.3.210.0130.00716.53
7.3.200.0140.00419.39
7.3.190.0170.00716.23
7.3.180.0070.01416.27
7.3.170.0090.00616.44
7.3.160.0090.00616.24
7.3.120.0090.00614.72
7.3.00.0050.00516.27
7.2.330.0100.00716.55
7.2.320.0050.01416.58
7.2.310.0000.00016.61
7.2.300.0100.00616.36
7.2.290.0120.00616.22
7.2.130.0060.00616.92
7.2.120.0050.00816.72
7.2.110.0050.00616.91
7.2.100.0060.00716.57
7.2.90.0050.01016.88
7.2.80.0060.00716.71
7.2.70.0090.00216.75
7.2.60.0060.00416.70
7.2.50.0050.00816.82
7.2.40.0090.00316.91
7.2.30.0060.00616.71
7.2.20.0070.00516.62
7.2.10.0080.00316.80
7.2.00.0030.00917.46
7.1.250.0080.00715.65
7.1.240.0080.00415.77
7.1.230.0030.00815.80
7.1.220.0070.00715.60
7.1.210.0060.00415.71
7.1.200.0050.00315.59
7.1.190.0050.00815.75
7.1.180.0040.00615.76
7.1.170.0010.00815.77
7.1.160.0060.00415.64
7.1.150.0040.00415.93
7.1.140.0040.00715.60
7.1.130.0040.00715.77
7.1.120.0060.00715.54
7.1.110.0080.00615.81
7.1.100.0110.00516.43
7.1.90.0050.00715.78
7.1.80.0030.00615.82
7.1.70.0070.00516.13
7.1.60.0050.01216.83
7.1.50.0070.00916.09
7.1.40.0110.00215.78
7.1.30.0030.01015.83
7.1.20.0040.00615.80
7.1.10.0050.00515.76
7.1.00.0030.03217.91
7.0.330.0090.00315.27
7.0.320.0070.00415.47
7.0.310.0020.00815.23
7.0.300.0060.00415.42
7.0.290.0020.01015.26
7.0.280.0030.00715.11
7.0.270.0070.00315.21
7.0.260.0050.00615.37
7.0.250.0060.00815.27
7.0.240.0060.00515.38
7.0.230.0060.00715.26
7.0.220.0060.00415.46
7.0.210.0050.00515.30
7.0.200.0010.00815.89
7.0.190.0000.01315.53
7.0.180.0050.00715.42
7.0.170.0070.00615.31
7.0.160.0080.00515.37
7.0.150.0040.00815.32
7.0.140.0040.03017.49
7.0.130.0060.00315.43
7.0.120.0020.00915.48
7.0.110.0050.00415.42
7.0.100.0040.00915.46
7.0.90.0060.02016.77
7.0.80.0040.02316.85
7.0.70.0060.03016.84
7.0.60.0040.03016.84
7.0.50.0060.03116.98
7.0.40.0070.02015.62
7.0.30.0040.02315.75
7.0.20.0060.03315.66
7.0.10.0050.02215.65
7.0.00.0030.02915.57
5.6.380.0040.00814.23
5.6.370.0050.00614.40
5.6.360.0070.00714.35
5.6.350.0050.00614.17
5.6.340.0050.00714.04
5.6.330.0070.00514.25
5.6.320.0050.00914.29
5.6.310.0030.01014.09
5.6.300.0050.00514.31
5.6.290.0020.01314.32
5.6.280.0080.02816.67
5.6.270.0060.00714.24
5.6.260.0020.01114.21
5.6.250.0050.00914.29
5.6.240.0120.03116.14
5.6.230.0040.03316.49
5.6.220.0040.03116.41
5.6.210.0050.03316.39
5.6.200.0050.03316.62
5.6.190.0040.02516.61
5.6.180.0030.02116.41
5.6.170.0040.03016.58
5.6.160.0020.03416.62
5.6.150.0100.01816.53
5.6.140.0060.03416.58
5.6.130.0040.03616.48
5.6.120.0050.02416.66
5.6.110.0060.03216.54
5.6.100.0070.01816.55
5.6.90.0060.02316.47
5.6.80.0040.02716.22
5.6.70.0060.02916.30
5.6.60.0070.02716.22
5.6.50.0090.02716.23
5.6.40.0080.02916.18
5.6.30.0030.03516.16
5.6.20.0060.03116.09
5.6.10.0080.02816.27
5.6.00.0040.03116.14
5.5.380.0070.02414.28
5.5.370.0020.03214.22
5.5.360.0080.02414.21
5.5.350.0050.01814.22
5.5.340.0040.03014.43
5.5.330.0010.01914.39
5.5.320.0030.02014.36
5.5.310.0020.03314.42
5.5.300.0060.02014.40
5.5.290.0050.03014.42
5.5.280.0080.02714.38
5.5.270.0050.02614.39
5.5.260.0030.02514.42
5.5.250.0010.02414.36
5.5.240.0080.02814.16
5.5.230.0040.02014.20
5.5.220.0030.03014.20
5.5.210.0060.02914.17
5.5.200.0040.03014.17
5.5.190.0060.01814.19
5.5.180.0020.02614.16
5.5.170.0030.00411.18
5.5.160.0050.03114.18
5.5.150.0050.02914.19
5.5.140.0060.02814.17
5.5.130.0050.03114.14
5.5.120.0040.03114.19
5.5.110.0030.02314.19
5.5.100.0030.03114.15
5.5.90.0060.01914.17
5.5.80.0020.03114.12
5.5.70.0060.02114.14
5.5.60.0010.02914.15
5.5.50.0070.02414.16
5.5.40.0020.02014.17
5.5.30.0030.03214.15
5.5.20.0060.01714.16
5.5.10.0030.02014.13
5.5.00.0080.01914.12
5.4.450.0030.02313.91
5.4.440.0030.03013.93
5.4.430.0060.01613.88
5.4.420.0050.02913.86
5.4.410.0070.02713.87
5.4.400.0040.01613.80
5.4.390.0040.02913.77
5.4.380.0050.02913.82
5.4.370.0050.02013.79
5.4.360.0020.03313.80
5.4.350.0060.01713.80
5.4.340.0030.02413.72
5.4.330.0050.00311.18
5.4.320.0030.02113.76
5.4.310.0030.02713.82
5.4.300.0060.03013.81
5.4.290.0030.02313.77
5.4.280.0000.03313.86
5.4.270.0030.02113.72
5.4.260.0070.02513.86
5.4.250.0030.03013.80
5.4.240.0070.01613.76
5.4.230.0060.01513.81
5.4.220.0030.02913.83
5.4.210.0040.02813.80
5.4.200.0030.01613.80
5.4.190.0040.02913.79
5.4.180.0020.02413.82
5.4.170.0070.02513.80
5.4.160.0100.02713.80
5.4.150.0050.02913.80
5.4.140.0020.02112.90
5.4.130.0040.02312.90
5.4.120.0050.02812.90
5.4.110.0070.02812.93
5.4.100.0090.02412.91
5.4.90.0040.02812.88
5.4.80.0080.01912.94
5.4.70.0010.02012.92
5.4.60.0020.03012.86
5.4.50.0030.01712.90
5.4.40.0020.02412.88
5.4.30.0020.02112.86
5.4.20.0020.03112.85
5.4.10.0060.01712.85
5.4.00.0060.01612.68
5.3.290.0020.03012.28
5.3.280.0110.02512.30
5.3.270.0030.03412.32
5.3.260.0050.03012.32
5.3.250.0040.02212.31
5.3.240.0080.02412.32
5.3.230.0050.02812.31
5.3.220.0030.03012.29
5.3.210.0070.03212.30
5.3.200.0050.03012.30
5.3.190.0040.02512.28
5.3.180.0040.02512.31
5.3.170.0020.02012.30
5.3.160.0030.02512.30
5.3.150.0030.03212.30
5.3.140.0010.03012.24
5.3.130.0040.01812.28
5.3.120.0030.02812.25
5.3.110.0050.02812.29
5.3.100.0050.02512.08
5.3.90.0090.02312.13
5.3.80.0070.02612.05
5.3.70.0040.02912.04
5.3.60.0030.02212.03
5.3.50.0070.02512.10
5.3.40.0060.02412.08
5.3.30.0060.01412.05
5.3.20.0040.01711.99
5.3.10.0050.02611.95
5.3.00.0040.03011.98
5.2.170.0030.02411.18
5.2.160.0030.01811.16
5.2.150.0080.01011.17
5.2.140.0060.01211.11
5.2.130.0040.02311.10
5.2.120.0060.02011.16
5.2.110.0050.02011.17
5.2.100.0010.02211.14
5.2.90.0030.02211.16
5.2.80.0040.02011.09
5.2.70.0050.02011.08
5.2.60.0040.02311.08
5.2.50.0080.01911.07
5.2.40.0030.02511.13
5.2.30.0040.02211.05
5.2.20.0030.02111.05
5.2.10.0050.02211.09
5.2.00.0050.02211.00
5.1.60.0020.02310.97
5.1.50.0060.01810.97
5.1.40.0060.01710.97
5.1.30.0040.02010.97
5.1.20.0030.02010.97
5.1.10.0020.02210.97
5.1.00.0030.01710.97
5.0.50.0050.01410.97
5.0.40.0020.01810.97
5.0.30.0030.02510.97
5.0.20.0020.01410.97
5.0.10.0020.01710.97
5.0.00.0070.01210.97
4.4.90.0000.01210.97
4.4.80.0040.01010.97
4.4.70.0040.00910.97
4.4.60.0040.01110.97
4.4.50.0010.01510.97
4.4.40.0010.01510.97
4.4.30.0050.01110.97
4.4.20.0030.01410.97
4.4.10.0020.00910.97
4.4.00.0020.01410.97
4.3.110.0020.01010.97
4.3.100.0030.01210.97
4.3.90.0020.01410.97
4.3.80.0030.00910.97
4.3.70.0010.00910.97
4.3.60.0020.01010.97
4.3.50.0010.01010.97
4.3.40.0010.02210.97
4.3.30.0010.01510.97
4.3.20.0000.01310.97
4.3.10.0020.01010.97
4.3.00.0020.01010.97

preferences:
61.59 ms | 401 KiB | 5 Q