3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('t1' => true, 't2' => 'v2'); echo json_encode($test, JSON_FORCE_OBJECT);

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.0070.00716.50
8.3.50.0140.00018.20
8.3.40.0040.01118.63
8.3.30.0100.00318.33
8.3.20.0030.00521.73
8.3.10.0080.00021.60
8.3.00.0000.00819.26
8.2.180.0120.00418.16
8.2.170.0070.00722.96
8.2.160.0030.01019.38
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0050.00222.14
8.2.120.0060.00326.35
8.2.110.0000.00921.02
8.2.100.0040.00817.79
8.2.90.0000.00818.22
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0060.00320.61
8.2.30.0000.00719.11
8.2.20.0000.00717.96
8.2.10.0000.00817.98
8.2.00.0040.00417.80
8.1.280.0120.00925.92
8.1.270.0050.00320.64
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00022.51
8.1.230.0080.00420.93
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.21
8.1.190.0030.00617.13
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0050.00318.68
8.1.150.0000.00718.72
8.1.140.0050.00319.53
8.1.130.0030.00318.84
8.1.120.0030.00317.32
8.1.110.0060.00317.39
8.1.100.0030.00617.37
8.1.90.0040.00417.38
8.1.80.0000.00717.38
8.1.70.0000.00717.36
8.1.60.0000.00817.39
8.1.50.0040.00417.45
8.1.40.0040.00417.45
8.1.30.0040.00417.57
8.1.20.0000.00717.46
8.1.10.0080.00017.43
8.1.00.0000.00717.41
8.0.300.0050.00220.03
8.0.290.0070.00016.75
8.0.280.0040.00418.34
8.0.270.0000.00717.24
8.0.260.0040.00417.11
8.0.250.0040.00416.95
8.0.240.0000.00816.96
8.0.230.0000.00716.74
8.0.220.0070.00016.66
8.0.210.0030.00316.78
8.0.200.0040.00416.88
8.0.190.0040.00416.84
8.0.180.0030.00516.84
8.0.170.0000.00716.75
8.0.160.0040.00416.85
8.0.150.0070.00016.80
8.0.140.0000.00716.80
8.0.130.0000.00513.28
8.0.120.0040.00416.81
8.0.110.0030.00516.74
8.0.100.0000.00716.79
8.0.90.0000.00816.87
8.0.80.0130.00316.87
8.0.70.0030.00616.61
8.0.60.0070.00016.68
8.0.50.0040.00416.81
8.0.30.0080.01016.97
8.0.20.0100.00817.40
8.0.10.0020.00516.92
8.0.00.0040.01316.52
7.4.330.0000.00515.55
7.4.320.0030.00316.39
7.4.300.0030.00316.42
7.4.290.0040.00416.56
7.4.280.0060.00316.40
7.4.270.0030.00316.50
7.4.260.0030.00316.34
7.4.250.0040.00416.33
7.4.240.0000.00716.45
7.4.230.0000.00816.22
7.4.220.0060.01216.61
7.4.210.0110.00416.54
7.4.200.0030.00316.54
7.4.160.0040.01316.29
7.4.150.0110.00717.40
7.4.140.0130.01117.86
7.4.130.0130.00416.36
7.4.120.0110.00916.40
7.4.110.0110.00816.31
7.4.100.0140.00416.20
7.4.90.0210.00316.29
7.4.80.0100.01019.39
7.4.70.0070.01016.54
7.4.60.0030.01316.45
7.4.50.0030.00916.54
7.4.40.0130.00616.26
7.4.30.0070.01016.50
7.4.00.0060.00914.93
7.3.330.0030.00313.02
7.3.320.0020.00212.98
7.3.310.0070.00016.13
7.3.300.0030.00316.09
7.3.290.0050.01216.11
7.3.280.0090.00916.10
7.3.270.0060.01217.40
7.3.260.0100.00716.44
7.3.250.0100.00616.45
7.3.240.0100.00616.26
7.3.230.0110.01116.05
7.3.210.0030.01216.21
7.3.200.0070.01416.22
7.3.190.0130.00716.41
7.3.180.0110.00516.39
7.3.170.0090.00616.32
7.3.160.0040.01116.28
7.3.10.0030.01016.66
7.3.00.0000.01016.55
7.2.330.0150.00316.22
7.2.320.0000.01816.61
7.2.310.0170.00016.23
7.2.300.0100.00716.41
7.2.290.0140.00716.53
7.2.130.0050.00316.62
7.2.120.0070.00716.55
7.2.110.0040.01116.46
7.2.100.0000.00916.70
7.2.90.0030.00916.78
7.2.80.0040.01216.89
7.2.70.0040.00816.72
7.2.60.0050.00716.69
7.2.50.0040.01116.88
7.2.40.0070.00716.63
7.2.30.0070.00716.38
7.2.20.0070.00716.86
7.2.10.0030.00616.66
7.2.00.0070.00417.94
7.1.250.0000.01015.41
7.1.240.0030.00715.70
7.1.230.0000.01015.71
7.1.220.0060.00315.61
7.1.210.0050.00515.70
7.1.200.0020.01115.70
7.1.190.0030.00615.48
7.1.180.0040.00415.48
7.1.170.0050.00515.34
7.1.160.0030.00615.40
7.1.150.0080.00315.45
7.1.140.0050.00515.76
7.1.130.0030.00715.62
7.1.120.0030.00715.63
7.1.110.0070.00715.82
7.1.100.0030.00516.66
7.1.90.0060.00315.85
7.1.80.0060.00815.63
7.1.70.0070.00416.49
7.1.60.0030.00816.54
7.1.50.0470.00724.16
7.1.40.0400.00823.99
7.1.30.0450.01124.14
7.1.20.0360.01024.16
7.1.10.0360.01014.94
7.1.00.0350.00815.19
7.0.330.0090.00315.45
7.0.320.0000.01215.37
7.0.310.0050.00215.20
7.0.300.0050.00515.08
7.0.290.0030.00615.36
7.0.280.0000.00715.48
7.0.270.0130.00015.26
7.0.260.0030.00615.38
7.0.250.0050.00514.99
7.0.240.0040.00415.14
7.0.230.0070.00315.44
7.0.220.0060.00915.31
7.0.210.0060.00615.45
7.0.200.0070.00916.04
7.0.190.0390.00515.04
7.0.180.0510.00614.64
7.0.170.0530.01214.73
7.0.160.0420.00514.74
7.0.150.0240.00914.73
7.0.140.0280.01114.91
7.0.130.0420.00915.04
7.0.120.0370.00814.81
7.0.110.0310.00814.66
7.0.100.0360.00514.83
7.0.90.0280.00714.79
7.0.80.0250.00814.85
7.0.70.0330.00714.88
7.0.60.0350.00814.69
7.0.50.0310.00514.75
7.0.40.0370.00614.04
7.0.30.0350.01313.93
7.0.20.0330.01113.62
7.0.10.0320.01513.86
7.0.00.0430.01413.97
5.6.380.0060.01014.34

preferences:
73.62 ms | 401 KiB | 5 Q