3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new Exception('What do you know about encapsulation in php?'); $e->__construct('Which encapsulation?'); throw $e;

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.0100.00716.63
8.3.50.0140.00521.14
8.3.40.0110.00418.63
8.3.30.0100.00718.80
8.3.20.0000.00720.20
8.3.10.0070.00021.74
8.3.00.0040.00423.53
8.2.180.0110.01116.63
8.2.170.0140.00718.73
8.2.160.0070.01122.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00319.82
8.2.120.0080.00026.35
8.2.110.0110.00022.38
8.2.100.0040.00717.91
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0000.00821.90
8.2.30.0070.00019.37
8.2.20.0070.00017.55
8.2.10.0070.00017.93
8.2.00.0090.00018.05
8.1.280.0100.00725.92
8.1.270.0000.00823.68
8.1.260.0060.00328.09
8.1.250.0030.00628.09
8.1.240.0040.00423.92
8.1.230.0040.00719.09
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0000.00718.10
8.1.170.0080.00018.64
8.1.160.0050.00320.73
8.1.150.0080.00018.89
8.1.140.0090.00019.58
8.1.130.0070.00017.70
8.1.120.0030.00417.46
8.1.110.0030.00617.38
8.1.100.0050.00217.49
8.1.90.0000.00717.36
8.1.80.0000.00717.35
8.1.70.0000.00717.34
8.1.60.0040.00417.46
8.1.50.0060.00317.52
8.1.40.0030.00617.59
8.1.30.0080.00017.57
8.1.20.0050.00317.55
8.1.10.0000.00817.47
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0070.00018.39
8.0.270.0000.00717.24
8.0.260.0030.00317.09
8.0.250.0000.00616.89
8.0.240.0000.00717.02
8.0.230.0080.00016.93
8.0.220.0000.00716.93
8.0.210.0030.00316.77
8.0.200.0080.00016.93
8.0.190.0040.00416.84
8.0.180.0070.00316.87
8.0.170.0040.00416.82
8.0.160.0040.00417.00
8.0.150.0040.00416.89
8.0.140.0030.00316.85
8.0.130.0000.00613.37
8.0.120.0000.00816.98
8.0.110.0070.00016.93
8.0.100.0040.00416.98
8.0.90.0040.00416.77
8.0.80.0060.01016.90
8.0.70.0000.00716.84
8.0.60.0040.00416.86
8.0.50.0040.00416.75
8.0.30.0150.00317.04
8.0.20.0140.00417.40
8.0.10.0000.00717.06
8.0.00.0090.00816.71
7.4.330.0050.00016.83
7.4.320.0030.00316.60
7.4.300.0040.00416.60
7.4.290.0070.00016.57
7.4.280.0060.00316.53
7.4.270.0030.00316.59
7.4.260.0060.00316.48
7.4.250.0030.00516.52
7.4.240.0030.00416.59
7.4.230.0070.00016.48
7.4.220.0030.01216.55
7.4.210.0060.00816.54
7.4.200.0030.00316.64
7.4.160.0100.01016.47
7.4.150.0150.00617.40
7.4.140.0080.01217.86
7.4.130.0110.00816.47
7.4.120.0120.00516.55
7.4.110.0060.01016.69
7.4.100.0070.01416.33
7.4.90.0070.01016.46
7.4.80.0130.00819.39
7.4.70.0040.01916.56
7.4.60.0160.00016.48
7.4.50.0040.01116.28
7.4.40.0070.01016.64
7.4.30.0040.01416.56
7.4.00.0080.00814.80
7.3.330.0000.00713.24
7.3.320.0060.00013.20
7.3.310.0000.00716.37
7.3.300.0030.00316.28
7.3.290.0070.00016.23
7.3.280.0090.00716.36
7.3.270.0150.00917.40
7.3.260.0080.00816.39
7.3.250.0080.00816.50
7.3.240.0050.01316.26
7.3.230.0140.00416.39
7.3.210.0120.00516.51
7.3.200.0060.01619.39
7.3.190.0120.00916.58
7.3.180.0090.00616.49
7.3.170.0060.00916.29
7.3.160.0070.01016.46
7.2.330.0120.00616.57
7.2.320.0100.00716.64
7.2.310.0060.01416.50
7.2.300.0170.00016.56
7.2.290.0100.00916.62
7.2.60.0030.01016.75
7.2.00.0060.00619.16
7.1.200.0100.00315.74
7.1.100.0220.01118.02
7.1.70.0030.00916.89
7.1.60.0090.01619.27
7.1.50.0100.01316.82
7.1.00.0000.08022.57
7.0.200.0050.00316.75
7.0.60.0100.03721.72
7.0.50.0000.04317.89
7.0.40.0170.07720.40
7.0.30.0300.07320.01
7.0.20.0200.08720.33
7.0.10.0030.04320.18
7.0.00.0130.04720.30
5.6.280.0030.03321.04
5.6.210.0000.08720.66
5.6.200.0030.04318.21
5.6.190.0030.04320.49
5.6.180.0000.09020.34
5.6.170.0200.08320.39
5.6.160.0030.07720.54
5.6.150.0130.07318.11
5.6.140.0130.07718.11
5.6.130.0070.05318.16
5.6.120.0030.09020.97
5.6.110.0100.08020.88
5.6.100.0100.08020.98
5.6.90.0130.08020.97
5.6.80.0070.08020.50
5.5.350.0070.08320.31
5.5.340.0100.07317.97
5.5.330.0000.07720.42
5.5.320.0230.03720.28
5.5.310.0270.07720.38
5.5.300.0000.04018.06
5.5.290.0100.08017.97
5.5.280.0200.07320.68
5.5.270.0100.03720.89
5.5.260.0100.08020.76
5.5.250.0170.07020.58
5.5.240.0130.03320.16

preferences:
53.25 ms | 401 KiB | 5 Q