3v4l.org

run code in 300+ PHP versions simultaneously
<?php // What happens when JSON string was stored in the option? $export_data = array(); $accumulated_data = 'not an array'; // get_post_meta( $request_id, '_export_data_raw', true ); if ( $accumulated_data ) { $export_data = $accumulated_data; } $export_data = array_merge( $export_data, array( 'test' => 'data' ) );

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.5.20.0070.01117.76
8.5.10.0100.00816.63
8.5.00.0110.01020.18
8.4.170.0110.01320.43
8.4.160.0120.00922.33
8.4.150.0010.00114.05
8.4.140.0130.00717.89
8.4.130.0100.00917.62
8.4.120.0130.00624.05
8.4.110.0130.00624.21
8.4.100.0140.00618.70
8.4.90.0150.00618.69
8.4.80.0050.00318.76
8.4.70.0040.00517.87
8.4.60.0120.00818.78
8.4.50.0120.00718.73
8.4.40.0100.01017.57
8.4.30.0160.00320.46
8.4.20.0100.01318.13
8.4.10.0200.00019.73
8.3.300.0160.00420.70
8.3.290.0140.00820.76
8.3.280.0130.00718.57
8.3.270.0130.00716.30
8.3.260.0060.00316.79
8.3.250.0040.00518.92
8.3.240.0120.00716.97
8.3.230.0100.01216.66
8.3.220.0110.00820.79
8.3.210.0080.00716.86
8.3.200.0090.01016.50
8.3.190.0090.00916.98
8.3.180.0050.00416.95
8.3.170.0060.01222.61
8.3.160.0090.00016.86
8.3.150.0090.00917.07
8.3.140.0110.00716.66
8.3.130.0060.00618.52
8.3.120.0110.00720.82
8.3.110.0050.00520.94
8.3.100.0160.00024.06
8.3.90.0110.00326.77
8.3.80.0030.00719.36
8.3.70.0180.00316.75
8.3.60.0190.00318.43
8.3.50.0100.00723.66
8.3.40.0070.00721.77
8.3.30.0150.00018.51
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0050.00326.16
8.2.300.0150.00522.26
8.2.290.0120.00920.35
8.2.280.0120.00718.73
8.2.270.0090.00917.00
8.2.260.0090.00916.78
8.2.250.0060.00318.58
8.2.240.0030.00617.25
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0070.00026.77
8.2.200.0060.00318.88
8.2.190.0070.00716.58
8.2.180.0070.00725.92
8.2.170.0090.00618.84
8.2.160.0030.01022.96
8.2.150.0030.00625.66
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00426.35
8.2.110.0000.01020.99
8.2.100.0140.00018.09
8.2.90.0030.00517.63
8.2.80.0050.00318.81
8.2.70.0060.00317.48
8.2.60.0060.00317.63
8.2.50.0000.00818.05
8.2.40.0060.00318.09
8.2.30.0050.00218.05
8.2.20.0040.00418.00
8.2.10.0050.00319.12
8.2.00.0040.00419.31
8.1.340.0090.01317.90
8.1.330.0150.00422.03
8.1.320.0110.01016.31
8.1.310.0110.00418.28
8.1.300.0070.00718.34
8.1.290.0000.01030.84
8.1.280.0030.01225.92
8.1.270.0030.00523.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0140.01019.14
8.1.230.0060.00620.84
8.1.220.0050.00318.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00918.52
8.1.160.0000.00718.79
8.1.150.0000.00718.71
8.1.140.0000.00718.82
8.1.130.0110.00019.95
8.1.120.0000.00717.42
8.1.110.0050.00217.29
8.1.100.0030.00517.46
8.1.90.0000.00717.32
8.1.80.0060.00317.27
8.1.70.0030.00317.43
8.1.60.0030.00617.52
8.1.50.0000.00817.41
8.1.40.0050.00317.55
8.1.30.0030.00617.59
8.1.20.0030.00517.66
8.1.10.0080.00417.58
8.1.00.0040.00417.52
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0070.00017.97
8.0.260.0070.00018.50
8.0.250.0030.00316.91
8.0.240.0060.00316.95
8.0.230.0030.00316.95
8.0.220.0070.00016.79
8.0.210.0070.00016.91
8.0.200.0040.00416.85
8.0.190.0040.00416.96
8.0.180.0040.00416.98
8.0.170.0000.00916.91
8.0.160.0000.00716.85
8.0.150.0000.00816.85
8.0.140.0000.00816.74
8.0.130.0050.00013.27
8.0.120.0040.00416.76
8.0.110.0070.00016.96
8.0.100.0030.00516.80
8.0.90.0070.00016.79
8.0.80.0110.00516.90
8.0.70.0070.00016.77
8.0.60.0070.00016.79
8.0.50.0040.00416.83
8.0.30.0070.01017.23
8.0.20.0130.00517.15
8.0.10.0040.00416.88
8.0.00.0100.01616.66
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0000.00716.42
7.4.290.0050.00316.29
7.4.280.0040.00416.32
7.4.270.0000.00716.45
7.4.260.0000.00513.21
7.4.250.0040.00416.32
7.4.240.0080.00016.55
7.4.230.0030.00316.39
7.4.220.0040.00316.63
7.4.210.0060.01116.53
7.4.200.0050.00216.65
7.4.130.0140.00916.27
7.4.120.0110.01516.54
7.4.110.0120.01216.16
7.4.100.0090.01816.25
7.4.90.0170.00916.05
7.4.80.0080.01615.72
7.4.70.0190.00815.88
7.4.60.0110.01316.02
7.4.50.0160.01116.32
7.4.40.0230.00616.13
7.4.30.0220.00716.00
7.4.20.0120.01716.38
7.4.10.0150.01116.21
7.4.00.0150.00715.81
7.3.330.0040.00416.35
7.3.320.0030.00313.13
7.3.310.0070.00316.22
7.3.300.0060.00016.26
7.3.290.0100.00816.21
7.3.260.0120.00916.32
7.3.250.0140.01816.33
7.3.240.0140.01215.92
7.3.230.0190.00915.98
7.3.220.0200.00916.11
7.3.210.0120.01216.02
7.3.200.0200.00816.28
7.3.190.0110.01816.06
7.3.180.0180.00916.03
7.3.170.0150.01116.13
7.3.160.0180.01016.22
7.3.150.0150.01316.13
7.3.140.0170.01216.09
7.3.130.0130.00916.17
7.3.120.0170.01216.17
7.3.110.0170.00616.34
7.3.100.0170.00916.16
7.3.90.0190.00716.39
7.3.80.0160.00916.13
7.3.70.0160.01116.07
7.3.60.0220.00916.17
7.3.50.0120.01515.99
7.3.40.0170.01016.09
7.3.30.0160.01216.26
7.3.20.0150.01216.27
7.3.10.0110.01515.95
7.3.00.0110.01716.22
7.2.340.0170.01015.88
7.2.330.0120.01415.80
7.2.320.0090.01916.30
7.2.310.0120.01316.23
7.2.300.0140.01616.21
7.2.290.0220.00616.11
7.2.280.0210.00516.30
7.2.270.0130.01416.36
7.2.260.0240.01116.33
7.2.250.0140.01116.52
7.2.240.0230.00616.15
7.2.230.0220.00416.07
7.2.220.0140.01016.56
7.2.210.0120.01516.17
7.2.200.0170.00716.09
7.2.190.0130.01016.18
7.2.180.0120.01016.43
7.2.170.0220.00816.50
7.2.160.0040.01916.45
7.2.150.0230.01116.33
7.2.140.0160.01316.52
7.2.130.0110.01416.49
7.2.120.0150.01116.44
7.2.110.0150.01116.45
7.2.100.0130.01616.54
7.2.90.0170.01516.47
7.2.80.0220.00916.41
7.2.70.0160.01716.48
7.2.60.0150.01216.47
7.2.50.0180.01216.26
7.2.40.0210.00616.46
7.2.30.0190.01016.62
7.2.20.0180.01116.30
7.2.10.0150.01116.50
7.2.00.0120.01116.42

preferences:
31.98 ms | 403 KiB | 5 Q