3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TransactionId { private $id; public function __construct($id) { $this->id = $id; } public function __troString() { return $this->id; } } echo json_encode(array('id' => (string) new TransactionId('asdfgbhbva')));

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.0090.00618.47
8.3.50.0170.00721.22
8.3.40.0070.01118.78
8.3.30.0070.00718.79
8.3.20.0000.00920.13
8.3.10.0050.00321.91
8.3.00.0080.00017.93
8.2.180.0110.01118.29
8.2.170.0060.00922.96
8.2.160.0100.00320.47
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00817.75
8.2.110.0060.00321.05
8.2.100.0030.00817.63
8.2.90.0050.00519.08
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0080.00318.90
8.2.30.0000.00720.47
8.2.20.0000.00817.60
8.2.10.0040.00417.87
8.2.00.0040.00417.89
8.1.280.0030.01725.92
8.1.270.0100.01022.06
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0070.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0040.00421.90
8.1.150.0000.00718.70
8.1.140.0000.00917.44
8.1.130.0000.00917.56
8.1.120.0040.00417.25
8.1.110.0000.00717.34
8.1.100.0080.00017.38
8.1.90.0070.00017.52
8.1.80.0030.00317.45
8.1.70.0080.00017.45
8.1.60.0000.00817.53
8.1.50.0030.00617.51
8.1.40.0060.00317.40
8.1.30.0000.00817.68
8.1.20.0000.00717.65
8.1.10.0040.00417.57
8.1.00.0000.00717.40
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0030.00317.20
8.0.260.0080.00017.19
8.0.250.0000.00716.96
8.0.240.0040.00416.98
8.0.230.0000.00716.89
8.0.220.0000.00716.88
8.0.210.0030.00316.88
8.0.200.0040.00416.94
8.0.190.0040.00416.92
8.0.180.0000.00716.88
8.0.170.0000.00816.85
8.0.160.0000.00716.75
8.0.150.0000.00716.82
8.0.140.0030.00516.73
8.0.130.0030.00313.27
8.0.120.0080.00016.88
8.0.110.0070.00016.97
8.0.100.0040.00416.88
8.0.90.0030.00416.88
8.0.80.0040.01116.92
8.0.70.0000.00716.76
8.0.60.0040.00416.77
8.0.50.0000.00716.87
8.0.30.0120.00617.19
8.0.20.0070.01217.40
8.0.10.0070.00016.95
8.0.00.0130.00416.82
7.4.330.0030.00315.08
7.4.320.0060.00016.43
7.4.300.0030.00316.49
7.4.290.0000.00716.51
7.4.280.0030.00616.49
7.4.270.0070.00016.34
7.4.260.0000.00616.44
7.4.250.0070.00016.49
7.4.240.0040.00416.49
7.4.230.0080.00016.42
7.4.220.0070.01116.64
7.4.210.0070.01316.50
7.4.200.0040.00416.65
7.4.160.0040.01216.51
7.4.150.0100.00717.40
7.4.140.0100.01217.86
7.4.130.0100.01116.48
7.4.120.0110.00816.53
7.4.110.0070.01016.43
7.4.100.0070.01316.41
7.4.90.0030.01616.54
7.4.80.0070.01019.39
7.4.70.0180.00316.46
7.4.60.0180.00616.42
7.4.50.0000.00416.55
7.4.40.0040.01416.29
7.4.30.0130.00416.40
7.4.00.0090.00615.02
7.3.330.0050.00313.38
7.3.320.0050.00013.22
7.3.310.0000.00716.36
7.3.300.0000.00716.45
7.3.290.0100.00516.30
7.3.280.0140.00516.36
7.3.270.0060.01017.40
7.3.260.0170.00716.36
7.3.250.0050.01216.30
7.3.240.0140.00716.49
7.3.230.0110.00716.39
7.3.210.0120.00616.50
7.3.200.0160.00616.34
7.3.190.0130.00316.39
7.3.180.0080.00816.49
7.3.170.0140.01016.37
7.3.160.0110.00716.34
7.3.120.0000.01414.91
7.3.110.0030.01314.84
7.3.100.0040.01114.61
7.3.90.0030.01014.59
7.3.80.0070.00714.92
7.3.70.0030.01014.81
7.3.60.0060.00314.62
7.3.50.0030.00814.80
7.3.40.0000.00814.75
7.3.30.0030.00914.92
7.3.20.0070.00716.66
7.3.10.0050.01116.59
7.3.00.0060.00516.57
7.2.330.0130.00416.66
7.2.320.0130.00616.71
7.2.310.0140.00916.57
7.2.300.0060.01016.36
7.2.290.0110.00716.67
7.2.240.0000.01414.88
7.2.230.0090.00615.20
7.2.220.0120.00314.70
7.2.210.0080.00415.09
7.2.200.0030.00914.79
7.2.190.0060.00915.06
7.2.180.0120.00615.03
7.2.170.0030.01415.10
7.2.160.0090.00315.10
7.2.150.0040.00816.82
7.2.140.0060.00916.64
7.2.130.0060.00716.81
7.2.120.0020.01216.67
7.2.110.0030.01016.88
7.2.100.0030.01216.68
7.2.90.0020.01016.91
7.2.80.0080.00616.75
7.2.70.0050.00817.06
7.2.60.0030.01116.71
7.2.50.0050.01016.96
7.2.40.0030.01016.78
7.2.30.0030.01116.81
7.2.20.0070.00716.81
7.2.10.0050.00916.81
7.2.00.0040.01017.65
7.1.330.0040.00715.78
7.1.320.0060.00315.70
7.1.310.0080.00415.92
7.1.300.0000.01515.82
7.1.290.0140.00315.62
7.1.280.0040.00715.67
7.1.270.0100.00315.76
7.1.260.0070.00715.64
7.1.250.0090.00515.76
7.1.200.0100.00315.79
7.1.100.0060.01017.65
7.1.70.0040.00417.24
7.1.60.0100.01019.20
7.1.50.0120.01616.79
7.1.00.0070.07322.28
7.0.200.0000.01016.45
7.0.90.0270.03719.95
7.0.80.0300.03019.94
7.0.70.0200.04019.93
7.0.60.0200.05719.82
7.0.50.0430.07720.40
7.0.40.0070.06720.14
7.0.30.0130.07320.15
7.0.20.0070.05320.15
7.0.10.0200.03720.07
7.0.00.0200.07320.10
5.6.280.0000.03320.90
5.6.240.0030.05720.75
5.6.230.0170.03720.70
5.6.220.0000.04320.74
5.6.210.0030.04020.67
5.6.200.0100.07020.97
5.6.190.0070.07721.06
5.6.180.0130.07021.02
5.6.170.0130.08021.07
5.6.160.0100.07321.08
5.6.150.0030.08021.14
5.6.140.0170.06321.05
5.6.130.0030.08721.09
5.6.120.0130.07321.06
5.6.110.0100.08021.07
5.6.100.0070.08021.01
5.6.90.0070.08320.98
5.6.80.0130.07020.30
5.6.70.0130.07020.31
5.6.60.0100.06720.51
5.6.50.0100.03320.45
5.6.40.0130.07020.43
5.6.30.0100.07720.39
5.6.20.0170.06320.43
5.6.10.0130.08320.52
5.6.00.0030.04320.42
5.5.380.0100.05320.50
5.5.370.0070.03720.42
5.5.360.0030.04320.37
5.5.350.0000.04720.41
5.5.340.0130.06720.89
5.5.330.0100.08720.78
5.5.320.0100.07320.79
5.5.310.0070.08320.92
5.5.300.0070.06320.80
5.5.290.0030.08320.89
5.5.280.0070.07720.88
5.5.270.0070.07320.89
5.5.260.0170.07020.82
5.5.250.0100.07020.70
5.5.240.0100.08320.04
5.5.230.0070.08320.31
5.5.220.0000.05320.21
5.5.210.0030.04320.25
5.5.200.0030.07720.26
5.5.190.0030.06020.16
5.5.180.0170.06320.12
5.5.160.0030.04320.09
5.5.150.0030.05020.25
5.5.140.0130.07320.26
5.5.130.0070.08319.99
5.5.120.0070.08320.13
5.5.110.0030.06020.19
5.5.100.0200.06020.08
5.5.90.0130.06020.07
5.5.80.0070.08720.16
5.5.70.0030.07720.02
5.5.60.0100.07020.07
5.5.50.0030.08020.04
5.5.40.0030.08020.13
5.5.30.0170.04720.13
5.5.20.0000.07720.05
5.5.10.0230.05019.94
5.5.00.0200.06020.07
5.4.450.0100.07719.49
5.4.440.0030.05719.48
5.4.430.0070.08019.26
5.4.420.0070.08019.36
5.4.410.0130.06319.06
5.4.400.0070.04018.96
5.4.390.0100.07019.05
5.4.380.0070.06319.03
5.4.370.0070.08019.18
5.4.360.0000.08718.85
5.4.350.0100.04019.04
5.4.340.0170.03318.95
5.4.320.0130.03719.11
5.4.310.0130.05719.21
5.4.300.0100.06719.16
5.4.290.0100.05318.95
5.4.280.0170.07019.03
5.4.270.0100.06319.05
5.4.260.0070.07718.91
5.4.250.0000.07719.12
5.4.240.0030.06319.14
5.4.230.0100.07019.13
5.4.220.0030.08318.84
5.4.210.0130.07019.15
5.4.200.0070.06719.02
5.4.190.0100.06719.13
5.4.180.0170.06718.87
5.4.170.0030.06019.02
5.4.160.0030.06319.01
5.4.150.0030.04719.02
5.4.140.0070.04016.29
5.4.130.0070.06716.41
5.4.120.0130.07316.40
5.4.110.0030.06316.36
5.4.100.0030.07316.33
5.4.90.0030.07016.36
5.4.80.0070.07316.47
5.4.70.0100.05016.26
5.4.60.0070.06316.44
5.4.50.0070.06716.32
5.4.40.0100.05316.45
5.4.30.0200.06316.36
5.4.20.0030.07316.51
5.4.10.0130.06316.44
5.4.00.0130.07015.74

preferences:
63.48 ms | 401 KiB | 5 Q