3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = array(); $response['block_names'] = array("getdata"); $response['type'] = "show_block"; $response['title'] = "go"; $response['set_attributes'] = new \stdClass(); $response['set_attributes']->apikey = '12332141234123412341234'; var_dump(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.130.0050.00316.73
8.3.120.0230.00717.61
8.3.110.0250.00718.67
8.3.100.0220.00420.20
8.3.90.0180.00721.70
8.3.80.0090.00916.51
8.3.70.0150.00816.52
8.3.60.0100.00816.67
8.3.50.0160.00820.13
8.3.40.0170.00618.07
8.3.30.0180.00718.02
8.3.20.0180.00318.81
8.3.10.0230.00019.49
8.3.00.0070.01018.54
8.2.250.0060.01316.53
8.2.240.0240.00217.68
8.2.230.0150.00819.29
8.2.220.0190.00526.92
8.2.210.0150.00721.41
8.2.200.0180.00617.23
8.2.190.0190.00916.51
8.2.180.0230.00321.09
8.2.170.0240.00918.01
8.2.160.0240.00720.04
8.2.150.0200.00720.81
8.2.140.0150.00920.98
8.2.130.0160.00719.48
8.2.120.0170.00921.79
8.2.110.0230.00519.82
8.2.100.0210.01017.44
8.2.90.0200.01018.22
8.2.80.0220.00217.69
8.2.70.0190.00717.58
8.2.60.0170.00617.47
8.2.50.0140.00817.55
8.2.40.0130.00917.71
8.2.30.0140.00619.20
8.2.20.0220.00017.60
8.2.10.0160.00817.68
8.2.00.0170.00717.75
8.1.300.0170.00816.94
8.1.290.0160.00817.42
8.1.280.0230.00720.80
8.1.270.0200.00519.72
8.1.260.0200.00521.80
8.1.250.0220.00322.67
8.1.240.0170.00318.24
8.1.230.0180.00617.50
8.1.220.0170.00517.49
8.1.210.0170.00718.10
8.1.200.0170.00817.07
8.1.190.0150.00917.26
8.1.180.0180.00717.66
8.1.170.0140.00917.27
8.1.160.0150.01117.84
8.1.150.0120.01019.45
8.1.140.0240.00318.13
8.1.130.0130.00718.07
8.1.120.0140.00717.15
8.1.110.0190.00317.29
8.1.100.0150.00517.29
8.1.90.0060.00817.14
8.1.80.0130.00117.31
8.1.70.0090.01017.22
8.1.60.0200.00417.42
8.1.50.0210.00417.26
8.1.40.0190.00517.24
8.1.30.0160.00717.54
8.1.20.0120.01017.38
8.1.10.0250.00417.38
8.1.00.0170.00317.37
8.0.300.0150.00717.63
8.0.290.0190.00316.55
8.0.280.0170.00517.38
8.0.270.0200.00316.88
8.0.260.0170.00517.82
8.0.250.0130.00516.79
8.0.240.0190.00216.71
8.0.230.0160.00616.70
8.0.220.0190.00516.68
8.0.210.0150.00716.69
8.0.200.0150.00716.63
8.0.190.0180.00416.70
8.0.180.0180.00516.54
8.0.170.0190.00416.71
8.0.160.0160.00716.65
8.0.150.0170.00716.56
8.0.140.0190.00316.69
8.0.130.0130.00614.80
8.0.120.0150.00416.57
8.0.110.0100.00916.50
8.0.100.0210.00216.55
8.0.90.0170.00616.54
8.0.80.0170.01016.51
8.0.70.0150.00816.53
8.0.60.0130.00616.59
8.0.50.0190.00616.64
8.0.30.0170.00716.83
8.0.20.0170.00517.25
8.0.10.0130.00916.79
8.0.00.0220.00416.63
7.4.330.0130.00715.96
7.4.320.0110.00916.30
7.4.300.0180.00316.26
7.4.290.0150.00716.38
7.4.280.0170.00516.33
7.4.270.0160.00516.38
7.4.260.0200.00116.36
7.4.250.0160.00516.19
7.4.240.0130.00816.35
7.4.230.0100.01016.25
7.4.220.0150.01516.38
7.4.210.0160.01016.37
7.4.200.0160.00316.15
7.4.190.0200.00316.30
7.4.180.0120.00416.36
7.4.160.0150.00816.39
7.4.150.0170.00816.82
7.4.140.0150.00817.44
7.4.130.0120.01016.35
7.4.120.0160.00816.37
7.4.110.0160.00916.36
7.4.100.0180.00616.32
7.4.90.0130.00816.37
7.4.80.0140.00816.90
7.4.70.0120.00916.40
7.4.60.0130.00716.34
7.4.50.0120.00816.22
7.4.40.0110.00916.23
7.4.30.0140.00716.28
7.4.20.0100.01016.31
7.4.10.0100.00916.29
7.4.00.0110.00916.11
7.3.330.0140.00714.42
7.3.320.0130.00814.47
7.3.310.0160.00416.23
7.3.300.0160.00216.06
7.3.290.0110.00716.23
7.3.280.0120.00816.26
7.3.270.0190.00916.65
7.3.260.0170.00916.13
7.3.250.0110.01016.23
7.3.240.0160.00616.25
7.3.230.0200.00516.13
7.3.220.0150.01116.14
7.3.210.0120.01116.12
7.3.200.0150.00816.20
7.3.190.0140.00916.26
7.3.180.0160.00616.20
7.3.170.0110.01116.25
7.3.160.0150.00616.23
7.3.150.0140.00616.15
7.3.140.0120.00816.22
7.3.130.0120.00916.37
7.3.120.0130.00716.19
7.3.110.0090.00916.29
7.3.100.0110.00816.05
7.3.90.0090.01016.08
7.3.80.0120.00816.01
7.3.70.0150.00515.94
7.3.60.0110.00715.90
7.3.50.0110.00616.02
7.3.40.0120.00516.03
7.3.30.0090.00815.95
7.3.20.0120.00916.32
7.3.10.0140.00616.60
7.3.00.0110.00816.58
7.2.340.0130.00716.14
7.2.330.0110.01016.35
7.2.320.0120.01016.38
7.2.310.0140.00616.43
7.2.300.0090.01116.41
7.2.290.0100.00916.35
7.2.280.0130.00716.42
7.2.270.0130.00816.38
7.2.260.0100.00916.52
7.2.250.0110.00816.33
7.2.240.0100.00816.34
7.2.230.0090.01016.26
7.2.220.0130.00616.14
7.2.210.0100.01016.12
7.2.200.0100.01216.24
7.2.190.0110.00816.13
7.2.180.0120.00716.10
7.2.170.0130.00716.13
7.2.160.0100.01016.15
7.2.150.0110.00916.43
7.2.140.0130.00916.78
7.2.130.0100.01116.76
7.2.120.0140.01016.71
7.2.110.0120.00916.77
7.2.100.0110.00916.80
7.2.90.0110.01116.69
7.2.80.0160.00716.80
7.2.70.0140.00816.80
7.2.60.0130.00916.68
7.2.50.0130.00916.61
7.2.40.0150.00816.78
7.2.30.0140.00916.78
7.2.20.0100.00916.72
7.2.10.0120.00916.78
7.2.00.0150.00716.89
7.1.330.0220.00615.97
7.1.320.0170.00915.73
7.1.310.0160.00815.73
7.1.300.0140.01015.82
7.1.290.0170.00815.44
7.1.280.0200.00615.42
7.1.270.0180.00915.40
7.1.260.0180.00715.70
7.1.250.0190.00715.67
7.1.240.0210.00615.67
7.1.230.0170.00815.65
7.1.220.0190.00715.62
7.1.210.0160.00915.65
7.1.200.0170.00815.61
7.1.190.0170.00815.77
7.1.180.0170.01115.63
7.1.170.0170.00915.63
7.1.160.0200.00615.70
7.1.150.0190.00515.73
7.1.140.0180.00715.77
7.1.130.0190.00615.70
7.1.120.0190.00815.62
7.1.110.0270.00715.69
7.1.100.0160.01015.77
7.1.90.0170.00915.69
7.1.80.0150.00915.69
7.1.70.0120.00915.88
7.1.60.0180.00915.92
7.1.50.0210.00415.73
7.1.40.0170.00818.02
7.1.30.0200.00618.10
7.1.20.0160.01017.99
7.1.10.0160.00815.79
7.1.00.0140.01115.64
7.0.330.0170.00815.40
7.0.320.0180.00715.37
7.0.310.0190.00615.41
7.0.300.0190.00515.42
7.0.290.0190.00715.47
7.0.280.0150.01015.39
7.0.270.0260.00715.46
7.0.260.0160.00815.33
7.0.250.0160.00915.33
7.0.240.0170.00715.44
7.0.230.0140.00915.44
7.0.220.0210.00715.40
7.0.210.0180.00615.46
7.0.200.0140.00615.59
7.0.190.0180.00715.44
7.0.180.0150.00815.56
7.0.170.0150.00815.58
7.0.160.0160.00815.51
7.0.150.0150.00815.51
7.0.140.0170.00715.58
7.0.130.0130.01115.49
7.0.120.0170.00615.60
7.0.110.0170.00615.56
7.0.100.0160.00815.49
7.0.90.0160.00815.47
7.0.80.0130.00615.52
7.0.70.0130.00715.52
7.0.60.0140.00815.49
7.0.50.0120.00715.53
7.0.40.0140.00715.47
7.0.30.0130.00815.55
7.0.20.0140.00715.48
7.0.10.0160.00715.54
7.0.00.0130.00915.47
5.6.400.0150.01115.70
5.6.390.0150.01015.71
5.6.380.0160.00815.74
5.6.370.0180.00916.02
5.6.360.0140.01315.94
5.6.350.0170.00916.10
5.6.340.0190.00815.90
5.6.330.0160.01116.01
5.6.320.0130.01516.04
5.6.310.0180.00815.95
5.6.300.0190.00915.98
5.6.290.0160.01216.00
5.6.280.0170.01115.92
5.6.270.0180.01016.02
5.6.260.0170.01015.98
5.6.250.0190.00815.95
5.6.240.0170.01115.94
5.6.230.0150.01115.90
5.6.220.0150.01216.01
5.6.210.0150.01315.99
5.6.200.0220.00615.97
5.6.190.0180.01015.99
5.6.180.0150.01416.01
5.6.170.0200.00916.01
5.6.160.0200.00915.96
5.6.150.0190.01015.96
5.6.140.0190.00915.94
5.6.130.0180.01215.90
5.6.120.0190.00815.95
5.6.110.0180.01115.97
5.6.100.0210.00715.88
5.6.90.0170.01115.94
5.6.80.0180.00915.80
5.6.70.0170.00915.92
5.6.60.0180.00915.86
5.6.50.0170.00915.81
5.6.40.0190.00715.83
5.6.30.0170.00915.92
5.6.20.0190.00815.87
5.6.10.0190.00815.84
5.6.00.0200.00815.87

preferences:
16.7 ms | 403 KiB | 5 Q