3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public $x = 1; function __construct() { ++$this->x; } function __invoke() { return ++$this->x; } function __toString() { return (string) --$this->x; } } $obj = new C(); echo $obj();

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.70.0140.00718.31
8.3.60.0150.00618.24
8.3.50.0030.01318.05
8.3.40.0140.00718.83
8.3.30.0140.00418.70
8.3.20.0040.00420.35
8.3.10.0000.00821.96
8.3.00.0030.00519.97
8.2.190.0110.00716.75
8.2.180.0160.00718.30
8.2.170.0110.00322.96
8.2.160.0030.01020.58
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00419.33
8.2.120.0070.00026.35
8.2.110.0040.00422.17
8.2.100.0110.00019.39
8.2.90.0060.00318.03
8.2.80.0060.00319.26
8.2.70.0000.00818.03
8.2.60.0040.00417.93
8.2.50.0090.00018.16
8.2.40.0030.00522.35
8.2.30.0000.00719.46
8.2.20.0040.00418.03
8.2.10.0030.00918.18
8.2.00.0070.00018.38
8.1.280.0110.00425.92
8.1.270.0000.00820.32
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0000.00923.90
8.1.230.0040.00821.04
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0040.00417.12
8.1.180.0050.00218.10
8.1.170.0040.00418.59
8.1.160.0040.00718.83
8.1.150.0040.00420.14
8.1.140.0000.00717.58
8.1.130.0050.00220.66
8.1.120.0030.00617.51
8.1.110.0000.00817.32
8.1.100.0000.00817.46
8.1.90.0080.00417.39
8.1.80.0000.00817.50
8.1.70.0040.00417.35
8.1.60.0000.00817.48
8.1.50.0040.00417.49
8.1.40.0080.00017.51
8.1.30.0000.00817.62
8.1.20.0080.00317.61
8.1.10.0040.00717.63
8.1.00.0000.00817.40
8.0.300.0070.00019.95
8.0.290.0000.00816.63
8.0.280.0070.00018.37
8.0.270.0030.00317.27
8.0.260.0070.00016.83
8.0.250.0030.00316.90
8.0.240.0030.00516.97
8.0.230.0030.00316.79
8.0.220.0000.00716.92
8.0.210.0030.00316.86
8.0.200.0050.00316.95
8.0.190.0090.00016.98
8.0.180.0030.00316.91
8.0.170.0040.00416.89
8.0.160.0060.00316.93
8.0.150.0040.00416.69
8.0.140.0040.00416.84
8.0.130.0030.00313.33
8.0.120.0000.00716.85
8.0.110.0000.00816.93
8.0.100.0030.00616.93
8.0.90.0050.00316.92
8.0.80.0080.00816.88
8.0.70.0000.00717.01
8.0.60.0030.00516.79
8.0.50.0020.00517.01
8.0.30.0110.00717.13
8.0.20.0120.00817.41
8.0.10.0000.00816.88
8.0.00.0110.01116.71
7.4.330.0000.00415.55
7.4.320.0050.00216.43
7.4.300.0030.00316.47
7.4.290.0030.00316.39
7.4.280.0000.00716.64
7.4.270.0030.00716.61
7.4.260.0000.00716.49
7.4.250.0040.00416.49
7.4.240.0000.00716.61
7.4.230.0070.00016.53
7.4.220.0030.00616.66
7.4.210.0090.00616.61
7.4.200.0030.00316.60
7.4.160.0100.00916.47
7.4.150.0070.01117.40
7.4.140.0120.00617.86
7.4.130.0220.00316.60
7.4.120.0080.01216.49
7.4.110.0100.00716.70
7.4.100.0070.01016.36
7.4.90.0060.01216.29
7.4.80.0030.02019.39
7.4.70.0160.00716.49
7.4.60.0070.01016.46
7.4.50.0030.01316.60
7.4.40.0130.00316.51
7.4.00.0060.00914.86
7.3.330.0020.00213.20
7.3.320.0030.00313.22
7.3.310.0030.00316.08
7.3.300.0070.00016.25
7.3.290.0110.00816.20
7.3.280.0070.01416.20
7.3.270.0030.01317.40
7.3.260.0150.00516.33
7.3.250.0080.00916.43
7.3.240.0050.01416.32
7.3.230.0160.00416.23
7.3.210.0150.00316.29
7.3.200.0040.01216.22
7.3.190.0130.00316.28
7.3.180.0060.01016.29
7.3.170.0050.01016.23
7.3.160.0080.00816.43
7.3.10.0100.00916.59
7.3.00.0120.00916.62
7.2.330.0140.00316.38
7.2.320.0100.00616.70
7.2.310.0030.01516.65
7.2.300.0080.00816.56
7.2.290.0060.01016.67
7.2.130.0130.00616.84
7.2.120.0060.01016.83
7.2.110.0130.00916.62
7.2.100.0100.00916.63
7.2.90.0130.00716.81
7.2.80.0100.00816.74
7.2.70.0070.00916.80
7.2.60.0060.01316.79
7.2.50.0140.00516.62
7.2.40.0160.00416.90
7.2.30.0090.01016.76
7.2.20.0070.01016.92
7.2.10.0090.01217.20
7.2.00.0090.01217.05
7.1.250.0090.00515.81
7.1.200.0030.01015.56
7.1.130.0140.01016.72
7.1.120.0260.00616.92
7.1.110.0090.01216.11
7.1.100.0150.00916.22
7.1.90.0100.01315.79
7.1.80.0100.01015.65
7.1.70.0160.00715.18
7.1.60.0380.01432.85
7.1.50.0270.00932.73
7.1.40.0200.01332.47
7.1.30.0200.01432.28
7.1.20.0330.00732.35
7.1.10.0130.01014.54
7.1.00.0160.00814.55

preferences:
69.55 ms | 401 KiB | 5 Q