3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = array( 'user'=> array( 'userName' => 'JaneSmith', 'firstName' => 'Jane', 'lastName' => 'Smith' ), 'memberships' => array( array( 'productName' => 'WP-TEST', 'membershipType' => 'PAID', 'basic' => 'true' ) ) ); json_encode($body,true);

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.0110.00616.63
8.3.50.0140.00416.25
8.3.40.0120.00318.32
8.3.30.0040.01118.59
8.3.20.0050.00320.07
8.3.10.0040.00421.77
8.3.00.0030.00517.38
8.2.180.0060.00918.41
8.2.170.0070.00722.96
8.2.160.0120.00320.50
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00420.47
8.2.120.0070.00026.35
8.2.110.0030.00720.38
8.2.100.0120.00017.59
8.2.90.0060.00319.17
8.2.80.0040.00417.97
8.2.70.0030.00617.25
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0000.00820.53
8.2.30.0070.00021.00
8.2.20.0070.00017.88
8.2.10.0060.00317.86
8.2.00.0070.00017.98
8.1.280.0000.01425.92
8.1.270.0000.00724.02
8.1.260.0000.00726.35
8.1.250.0000.00528.09
8.1.240.0070.00423.81
8.1.230.0060.00620.86
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0100.00218.46
8.1.160.0040.00419.05
8.1.150.0040.00420.66
8.1.140.0050.00319.55
8.1.130.0000.00718.82
8.1.120.0000.00717.31
8.1.110.0000.00817.29
8.1.100.0050.00517.45
8.1.90.0000.00717.28
8.1.80.0000.00717.25
8.1.70.0000.00717.44
8.1.60.0080.00017.53
8.1.50.0000.00817.38
8.1.40.0000.00717.47
8.1.30.0040.00417.55
8.1.20.0030.00617.62
8.1.10.0000.00717.49
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00518.29
8.0.270.0100.00017.25
8.0.260.0060.00016.74
8.0.250.0000.00716.77
8.0.240.0030.00616.83
8.0.230.0040.00716.86
8.0.220.0030.00316.88
8.0.210.0030.00516.81
8.0.200.0000.00616.86
8.0.190.0030.00616.89
8.0.180.0000.00716.82
8.0.170.0030.00516.86
8.0.160.0030.00616.81
8.0.150.0040.00316.72
8.0.140.0040.00416.68
8.0.130.0000.00613.25
8.0.120.0050.00216.79
8.0.110.0040.00416.72
8.0.100.0000.00716.85
8.0.90.0000.00716.70
8.0.80.0080.00816.75
8.0.70.0050.00316.69
8.0.60.0000.00716.88
8.0.50.0020.00516.78
8.0.30.0120.00916.93
8.0.20.0110.00717.40
8.0.10.0000.00716.98
8.0.00.0090.00916.51
7.4.330.0060.00015.55
7.4.320.0030.00316.35
7.4.300.0030.00316.37
7.4.290.0000.00716.52
7.4.280.0000.00916.36
7.4.270.0000.00716.54
7.4.260.0000.00513.19
7.4.250.0050.00216.48
7.4.240.0040.00416.45
7.4.230.0000.00716.60
7.4.220.0180.00316.48
7.4.210.0030.01116.42
7.4.200.0000.00716.27
7.4.160.0100.00716.51
7.4.150.0140.00317.40
7.4.140.0090.01117.86
7.4.130.0100.00716.43
7.4.120.0110.00716.36
7.4.110.0210.00016.38
7.4.100.0030.01616.47
7.4.90.0030.01516.29
7.4.80.0130.01019.39
7.4.70.0110.00616.51
7.4.60.0130.00316.38
7.4.50.0040.01516.39
7.4.40.0040.01416.36
7.4.30.0070.01016.42
7.4.00.0130.00314.93
7.3.330.0030.00312.96
7.3.320.0030.00312.96
7.3.310.0000.00716.00
7.3.300.0060.00016.11
7.3.290.0070.00716.14
7.3.280.0100.00716.10
7.3.270.0130.00317.40
7.3.260.0120.00816.33
7.3.250.0140.00916.20
7.3.240.0100.00616.29
7.3.230.0090.00816.24
7.3.210.0060.00916.22
7.3.200.0030.01316.30
7.3.190.0070.01016.15
7.3.180.0060.01216.12
7.3.170.0120.00316.01
7.3.160.0120.00316.19
7.3.10.0090.00616.67
7.3.00.0140.00016.61
7.2.330.0130.00316.56
7.2.320.0060.00916.11
7.2.310.0030.01316.47
7.2.300.0080.01216.49
7.2.290.0110.00616.46
7.2.130.0070.00716.91
7.2.120.0000.01216.56
7.2.110.0030.01316.68
7.2.100.0040.01116.56
7.2.90.0070.00716.73
7.2.80.0030.00616.75
7.2.70.0070.00716.84
7.2.60.0030.00716.59
7.2.50.0120.00316.96
7.2.40.0070.00716.80
7.2.30.0070.00716.86
7.2.20.0030.00716.48
7.2.10.0100.00716.65
7.2.00.0030.00817.84
7.1.250.0080.00415.69
7.1.100.0000.01118.07
7.1.70.2800.01315.16
7.1.60.3430.01732.85
7.1.50.3100.01333.00
7.1.40.2730.01332.45
7.1.30.4270.01032.50
7.1.20.3100.01732.55
7.1.10.2430.01714.70
7.1.00.2630.01714.88
7.0.200.3130.00714.80
7.0.190.2370.01314.68
7.0.180.3370.00314.42
7.0.170.4170.01014.21
7.0.160.4070.01014.21
7.0.150.2670.01714.26
7.0.140.2630.01714.12
7.0.130.2400.01014.48
7.0.120.2170.02014.60
7.0.110.2470.01314.22
7.0.100.2400.00714.34
7.0.90.2930.01014.32
7.0.80.2370.01714.49
7.0.70.2800.01714.32
7.0.60.2530.01314.32
7.0.50.2870.01714.38
7.0.40.3570.02014.50
7.0.30.2900.02014.52
7.0.20.3130.00714.60
7.0.10.2300.01314.24
7.0.00.1800.01314.57

preferences:
35.62 ms | 400 KiB | 5 Q