3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ChildThread extends Thread { public $data; public function run() { /* Do some work */ $this->data = 'result'; } } $thread = new ChildThread(); if ($thread->start()) { /* * Do some work here, while already doing other * work in the child thread. */ // wait until thread is finished $thread->join(); // we can now even access $thread->data }

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.0150.00016.63
8.3.50.0110.01122.12
8.3.40.0160.00318.71
8.3.30.0030.01219.21
8.3.20.0080.00020.16
8.3.10.0050.00221.85
8.3.00.0100.00017.38
8.2.180.0230.00018.67
8.2.170.0070.00722.96
8.2.160.0030.01022.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.50
8.2.110.0070.00319.31
8.2.100.0040.00818.16
8.2.90.0050.00319.21
8.2.80.0030.00517.97
8.2.70.0000.00917.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0000.00718.20
8.2.30.0040.00418.05
8.2.20.0040.00417.68
8.2.10.0050.00318.11
8.2.00.0000.00717.75
8.1.280.0140.00725.92
8.1.270.0060.00320.57
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00321.22
8.1.230.0040.00717.76
8.1.220.0070.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.36
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00920.35
8.1.160.0040.00422.01
8.1.150.0050.00318.73
8.1.140.0040.00417.43
8.1.130.0000.00717.70
8.1.120.0000.01117.42
8.1.110.0070.00017.39
8.1.100.0040.00417.34
8.1.90.0000.00817.40
8.1.80.0030.00317.39
8.1.70.0000.00717.39
8.1.60.0050.00317.55
8.1.50.0030.00517.47
8.1.40.0030.00517.50
8.1.30.0030.00517.60
8.1.20.0040.00417.58
8.1.10.0040.00417.47
8.1.00.0030.00617.33
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0040.00418.32
8.0.270.0040.00417.26
8.0.260.0030.00317.13
8.0.250.0000.00716.95
8.0.240.0030.00316.90
8.0.230.0040.00416.88
8.0.220.0040.00416.87
8.0.210.0000.00716.99
8.0.200.0060.00016.95
8.0.190.0040.00417.08
8.0.180.0030.00316.82
8.0.170.0000.00716.97
8.0.160.0000.00816.87
8.0.150.0070.00016.96
8.0.140.0000.00716.88
8.0.130.0060.00013.45
8.0.120.0050.00316.91
8.0.110.0070.00016.90
8.0.100.0080.00016.82
8.0.90.0000.00716.98
8.0.80.0070.01016.90
8.0.70.0040.00416.81
8.0.60.0070.00016.89
8.0.50.0000.00816.77
8.0.30.0110.01117.19
8.0.20.0130.00617.40
8.0.10.0080.00017.06
8.0.00.0060.01116.88
7.4.330.0050.00015.09
7.4.320.0030.00316.55
7.4.300.0030.00316.54
7.4.290.0070.00016.52
7.4.280.0070.00416.44
7.4.270.0080.00016.51
7.4.260.0030.00316.42
7.4.250.0030.00516.42
7.4.240.0040.00416.54
7.4.230.0070.00016.32
7.4.220.0140.00416.31
7.4.210.0080.00616.43
7.4.200.0000.00716.63
7.4.160.0130.00316.42
7.4.150.0120.00817.40
7.4.140.0090.01017.86
7.4.130.0130.00316.38
7.4.120.0080.01016.49
7.4.110.0140.01116.45
7.4.100.0040.01316.53
7.4.90.0070.01116.64
7.4.80.0120.00619.39
7.4.70.0160.00016.37
7.4.60.0120.00416.44
7.4.50.0030.00316.48
7.4.40.0120.01016.38
7.4.30.0070.01016.59
7.4.00.0040.00714.62
7.3.330.0000.00513.22
7.3.320.0090.00413.25
7.3.310.0000.00616.14
7.3.300.0070.00016.11
7.3.290.0030.00316.16
7.3.280.0060.01116.30
7.3.270.0160.00717.40
7.3.260.0030.01516.56
7.3.250.0050.01416.46
7.3.240.0030.01316.23
7.3.230.0060.01316.39
7.3.210.0060.01216.47
7.3.200.0060.01219.39
7.3.190.0100.00716.37
7.3.180.0150.00816.38
7.3.170.0100.00716.41
7.3.160.0070.01416.38
7.2.330.0140.00716.57
7.2.320.0030.01716.45
7.2.310.0110.00616.54
7.2.300.0030.01616.54
7.2.290.0100.00716.57
7.2.60.0060.00616.40
7.2.00.0100.00619.24
7.1.200.0100.00315.43
7.1.100.0030.01117.93
7.1.70.0000.00816.95
7.1.60.0070.01019.46
7.1.50.0190.01634.49
7.1.00.0030.07722.45
7.0.200.0090.00616.37
7.0.140.0030.03321.95
7.0.60.0100.08319.87
7.0.50.0070.05317.95
7.0.40.0070.09020.10
7.0.30.0170.04720.26
7.0.20.0230.04320.09
7.0.10.0230.05720.23
7.0.00.0100.05720.05
5.6.280.0100.06321.07
5.6.210.0070.03720.45
5.6.200.0130.07318.22
5.6.190.0100.08320.48
5.6.180.0070.07320.51
5.6.170.0230.03720.48
5.6.160.0130.08320.55
5.6.150.0100.07718.19
5.6.140.0070.03718.18
5.6.130.0030.08318.13
5.6.120.0000.04721.00
5.6.110.0100.08721.11
5.6.100.0170.05721.11
5.6.90.0070.07021.12
5.6.80.0100.08020.53
5.6.70.0200.04020.50
5.5.350.0030.07020.30
5.5.340.0030.04018.07
5.5.330.0070.08720.57
5.5.320.0100.04720.28
5.5.310.0270.03720.41
5.5.300.0000.07318.08
5.5.290.0030.04017.98
5.5.280.0070.08720.98
5.5.270.0100.04320.87
5.5.260.0130.07720.68
5.5.250.0030.07720.50
5.5.240.0070.08020.29
5.4.450.0530.06319.54
5.4.440.0070.06019.18
5.4.430.0300.05019.46
5.4.420.0800.05719.69
5.4.410.0200.04719.21
5.4.400.0200.05718.75
5.4.390.0170.05018.38
5.4.380.0170.05318.70
5.4.370.0130.05318.75
5.4.360.0070.06318.59
5.4.350.0200.05018.70
5.4.340.0200.07018.45
5.4.320.0300.03718.58
5.4.310.0270.04018.54
5.4.300.0270.04718.79
5.4.290.0200.04718.74
5.4.280.0100.05718.51
5.4.270.0100.05718.64
5.4.260.0130.05318.75
5.4.250.0230.07318.23
5.4.240.0200.07018.74
5.4.230.0130.05018.59
5.4.220.0100.05718.67
5.4.210.0230.04018.46
5.4.200.0030.06016.60
5.4.190.0200.05018.72
5.4.180.0270.03718.77
5.4.170.0170.05018.46
5.4.160.0200.05018.73
5.4.150.0230.05718.70
5.4.140.0170.05016.28
5.4.130.0200.04016.40
5.4.120.0000.06716.16
5.4.110.0200.04316.44
5.4.100.0170.05016.27
5.4.90.0000.06316.29
5.4.80.0100.05016.27
5.4.70.0170.06016.39
5.4.60.0300.04016.17
5.4.50.0170.04716.37
5.4.40.0170.05016.15
5.4.30.0200.04316.18
5.4.20.0200.04716.23
5.4.10.0070.05316.26
5.4.00.0170.05015.62
5.3.290.0130.05714.64
5.3.280.0170.04714.66
5.3.270.0070.06014.65
5.3.260.0130.05314.59
5.3.250.0170.05014.80
5.3.240.0170.05314.63
5.3.230.0130.05014.77
5.3.220.0100.05714.61
5.3.210.0170.05314.62
5.3.200.0200.04314.68
5.3.190.0230.04314.58
5.3.180.0230.05714.57
5.3.170.0170.04714.69
5.3.160.0130.05014.55
5.3.150.0170.07014.76
5.3.140.0270.06014.57
5.3.130.0100.08014.58
5.3.120.0170.07314.65
5.3.110.0270.06314.74
5.3.100.0100.06014.14
5.3.90.0070.05714.15
5.3.80.0100.05314.14
5.3.70.0100.05714.11
5.3.60.0130.05014.07
5.3.50.0130.05014.07
5.3.40.0100.05714.00
5.3.30.0200.04313.90
5.3.20.0130.04713.67
5.3.10.0170.04313.64
5.3.00.0100.05713.67
5.2.170.0070.04711.19
5.2.160.0130.04011.19
5.2.150.0130.04011.36
5.2.140.0070.05011.14
5.2.130.0130.04011.25
5.2.120.0070.04311.16
5.2.110.0130.04311.17
5.2.100.0030.04711.21
5.2.90.0070.04311.11
5.2.80.0100.04011.19
5.2.70.0300.02311.13
5.2.60.0170.03311.10
5.2.50.0100.04311.15
5.2.40.0100.03711.09
5.2.30.0170.04011.02
5.2.20.0070.04311.02
5.2.10.0170.03010.93
5.2.00.0100.04310.75
5.1.60.0030.03710.11
5.1.50.0100.03310.01
5.1.40.0130.03010.09
5.1.30.0100.03710.43
5.1.20.0100.04010.41
5.1.10.0130.03010.10
5.1.00.0100.03310.17
5.0.50.0070.0308.74
5.0.40.0000.0338.52
5.0.30.0130.0378.43
5.0.20.0070.0278.23
5.0.10.0030.0338.20
5.0.00.0070.0438.20
4.4.90.0030.0235.89
4.4.80.0030.0305.86
4.4.70.0000.0275.88
4.4.60.0100.0175.88
4.4.50.0100.0175.88
4.4.40.0030.0405.90
4.4.30.0030.0235.89
4.4.20.0070.0205.97
4.4.10.0000.0275.93
4.4.00.0070.0335.89
4.3.110.0030.0235.82
4.3.100.0100.0175.86
4.3.90.0070.0235.81
4.3.80.0100.0275.93
4.3.70.0030.0235.77
4.3.60.0030.0235.78
4.3.50.0030.0235.78
4.3.40.0030.0335.73
4.3.30.0070.0204.58
4.3.20.0030.0304.55
4.3.10.0000.0274.54
4.3.00.0070.0206.86

preferences:
66.51 ms | 401 KiB | 5 Q